From 5ce422e7f48ec5c65895a2f1dfe72b14390399f7 Mon Sep 17 00:00:00 2001 From: fangdong sun Date: Tue, 2 Aug 2016 16:25:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E5=AE=9A=E6=9E=84=E5=BB=BA=E7=9A=84jd?= =?UTF-8?q?k=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer_chart/build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/designer_chart/build.gradle b/designer_chart/build.gradle index 1cdfdc8bd..5daf8d856 100644 --- a/designer_chart/build.gradle +++ b/designer_chart/build.gradle @@ -3,12 +3,14 @@ apply plugin: 'java' tasks.withType(JavaCompile){ options.encoding = 'UTF-8' } - +//指定构建的jdk版本 +sourceCompatibility=1.8 +//指定生成jar包的版本 version='8.0' def srcDir="." - +//对生成的jar包进行重命名 jar{ baseName='fr-designer-chart' @@ -21,13 +23,14 @@ sourceSets{ } } } +//指定外部依赖 dependencies{ compile fileTree(dir:'../../finereport-lib-stable',include:'**/*.jar') compile fileTree(dir:'../../',include:'finereport-*-stable/**/*.jar') testCompile 'junit:junit:4.12' } - +//将非.java 文件复制到classes文件夹下参与打包 task copyFile(type:Copy,dependsOn:compileJava){ copy{ from ("${srcDir}/src"){