Browse Source

编译目录

pull/1/head
richie 5 years ago
parent
commit
1ba498b7df
  1. 15
      plugin-function/build.gradle
  2. 15
      plugin-function2/build.gradle

15
plugin-function/build.gradle

@ -1,9 +1,6 @@
import org.codehaus.groovy.runtime.GStringImpl
plugins { apply plugin: 'java'
id 'java'
id 'maven-publish'
}
ext { ext {
/** /**
@ -11,7 +8,7 @@ ext {
* 1.jar需要打包到zip中,lib根目录下 * 1.jar需要打包到zip中,lib根目录下
* 2.jar仅仅是编译时需要lib下子目录下即可 * 2.jar仅仅是编译时需要lib下子目录下即可
*/ */
libPath = "$projectDir/../webroot/WEB-INF/lib" as GStringImpl libPath = "$projectDir/../webroot/WEB-INF/lib"
/** /**
* class进行加密保护 * class进行加密保护
@ -28,6 +25,12 @@ group = 'com.fr.plugin'
version = '10.0' version = '10.0'
sourceCompatibility = '8' sourceCompatibility = '8'
sourceSets {
main {
java.outputDir = file("$projectDir/../webroot/WEB-INF/lib/plugins/plugin-" + pluginName + "-1.0/classes")
}
}
ant.importBuild("encrypt.xml") ant.importBuild("encrypt.xml")
//ant变量 //ant变量
ant.projectDir = projectDir ant.projectDir = projectDir

15
plugin-function2/build.gradle

@ -1,9 +1,6 @@
import org.codehaus.groovy.runtime.GStringImpl
plugins { apply plugin: 'java'
id 'java'
id 'maven-publish'
}
ext { ext {
/** /**
@ -11,7 +8,7 @@ ext {
* 1.jar需要打包到zip中,lib根目录下 * 1.jar需要打包到zip中,lib根目录下
* 2.jar仅仅是编译时需要lib下子目录下即可 * 2.jar仅仅是编译时需要lib下子目录下即可
*/ */
libPath = "$projectDir/../webroot/WEB-INF/lib" as GStringImpl libPath = "$projectDir/../webroot/WEB-INF/lib"
/** /**
* class进行加密保护 * class进行加密保护
@ -28,6 +25,12 @@ group = 'com.fr.plugin'
version = '10.0' version = '10.0'
sourceCompatibility = '8' sourceCompatibility = '8'
sourceSets {
main {
java.outputDir = file("$projectDir/../webroot/WEB-INF/lib/plugins/plugin-" + pluginName + "-1.0/classes")
}
}
ant.importBuild("encrypt.xml") ant.importBuild("encrypt.xml")
//ant变量 //ant变量
ant.projectDir = projectDir ant.projectDir = projectDir

Loading…
Cancel
Save