diff --git a/build.third_step0.gradle b/build.third_step0.gradle index 387c4eded..9e9ca2513 100644 --- a/build.third_step0.gradle +++ b/build.third_step0.gradle @@ -1,5 +1,19 @@ +apply plugin: 'java' +tasks.withType(JavaCompile){ + options.encoding = 'UTF-8' + destinationDir = file('build/classes/main') +} +//指定构建的jdk版本 +sourceCompatibility=1.5 +def jarname="fr-third-9.0.jar" +def classesDir='build/classes/main' +//解压lib下的jar到classes文件夹 +jar{ + baseName="fr-third-9.0" +} + //获取什么分支名 FileTree files =fileTree(dir:'./',include:'build.*.gradle') def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('/')) @@ -27,6 +41,9 @@ task unJar{ include(name:'aopalliance-1.0.jar') include(name:'aspectjweaver-1.8.4.jar') } + fileset(dir:"${srcDir}/build/libs"){ + include(name:"*.jar") + } } } } diff --git a/build.third_step1.gradle b/build.third_step1.gradle index 008faddf3..cd6c3d070 100644 --- a/build.third_step1.gradle +++ b/build.third_step1.gradle @@ -2,6 +2,7 @@ apply plugin: 'java' tasks.withType(JavaCompile){ options.encoding = 'UTF-8' + destinationDir = file('build/classes/1') } //指定构建的jdk版本 sourceCompatibility=1.5 diff --git a/build.third_step2.gradle b/build.third_step2.gradle index bb2f7886c..1dd5b8a43 100644 --- a/build.third_step2.gradle +++ b/build.third_step2.gradle @@ -2,6 +2,7 @@ apply plugin: 'java' tasks.withType(JavaCompile){ options.encoding = 'UTF-8' + destinationDir = file('build/classes/2') } //指定构建的jdk版本 sourceCompatibility=1.5 diff --git a/build.third_step3.gradle b/build.third_step3.gradle index d7c8646d6..34a458e76 100644 --- a/build.third_step3.gradle +++ b/build.third_step3.gradle @@ -2,6 +2,7 @@ apply plugin: 'java' tasks.withType(JavaCompile){ options.encoding = 'UTF-8' + destinationDir = file('build/classes/3') } //指定构建的jdk版本 sourceCompatibility=1.5 diff --git a/build.third_step4.gradle b/build.third_step4.gradle index a69812234..f8ef7ca88 100644 --- a/build.third_step4.gradle +++ b/build.third_step4.gradle @@ -2,6 +2,7 @@ apply plugin: 'java' tasks.withType(JavaCompile){ options.encoding = 'UTF-8' + destinationDir = file('build/classes/4') } //指定构建的jdk版本 sourceCompatibility=1.5 diff --git a/build.third_step5.gradle b/build.third_step5.gradle index fe277777b..4903c5b71 100644 --- a/build.third_step5.gradle +++ b/build.third_step5.gradle @@ -2,6 +2,7 @@ apply plugin: 'java' tasks.withType(JavaCompile){ options.encoding = 'UTF-8' + destinationDir = file('build/classes/5') } //指定构建的jdk版本 sourceCompatibility=1.5