Browse Source

Merge pull request #360 in CORE/base-third from ~ZHOUPING/base-third:research/10.0 to research/10.0

* commit '2ee2cca6aaa2a4d049ef2bb8ceb9d13e8ed82de0':
  KERNEL-1298 打包
research/10.0
zhouping 5 years ago
parent
commit
20beb772a3
  1. 83
      build.third_step1-jdk11.gradle
  2. 83
      build.third_step2-jdk11.gradle
  3. 41
      build.third_step3-jdk11.gradle
  4. 34
      build.third_step4-jdk11.gradle
  5. 43
      build.third_step5-jdk11.gradle
  6. 37
      build.third_step6-jdk11.gradle
  7. 26
      build.third_step7-jdk11.gradle
  8. 38
      build.third_step8-jdk11.gradle

83
build.third_step1-jdk11.gradle

@ -26,7 +26,6 @@ task unJar{
} }
} }
// //
sourceSets{ sourceSets{
main{ main{
@ -94,45 +93,6 @@ sourceSets{
} }
sourceSets.main.java.outputDir = file('build/classes/1')
repositories{
mavenCentral()
maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
}
//
FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
def MVN_BRANCH = branchVariable.toUpperCase()
//
dependencies{
compile fileTree(dir:"${srcDir}/fine-antlr4/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-aspectj/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-commons-logging/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-cssparser/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-freehep/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-hsqldb/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-jgit/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-org-dom4j/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-sense4/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-third-default/fine-slf4j-api/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:System.getenv("JAVA_HOME"),include:"lib/tools.jar")
compile group: "com.fr.third.server", name: "servlet-api", version: "3.0"
testCompile 'junit:junit:4.12'
}
//
def dataContent = { def dir ->
copySpec{
from ("${dir}"){
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html'
}
}
}
def resourceDirs = [ def resourceDirs = [
"${srcDir}/fine-antlr4/src", "${srcDir}/fine-antlr4/src",
"${srcDir}/fine-antlr-old/src/main/java", "${srcDir}/fine-antlr-old/src/main/java",
@ -194,17 +154,36 @@ def resourceDirs = [
"${srcDir}/fine-third-jdk11/fine-jaxws/src/main/java" "${srcDir}/fine-third-jdk11/fine-jaxws/src/main/java"
] ]
task copyFiles(type:Copy,dependsOn:'compileJava'){ sourceSets.main.java.outputDir = file('build/classes/1')
resourceDirs.each { sourceSets.main.resources.srcDirs = resourceDirs
String resourceDir -> sourceSets.main.resources.excludes = ['**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html']
if(file(resourceDir).exists()){ sourceSets.main.output.resourcesDir = file('build/resource/1')
copy {
println("----复制资源:从" + resourceDir + "到${classesDir}" ) repositories{
with dataContent.call(resourceDir) mavenCentral()
into "${classesDir}" maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
}
}
}
} }
jar.dependsOn copyFiles //
FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
def MVN_BRANCH = branchVariable.toUpperCase()
//
dependencies{
compile fileTree(dir:"${srcDir}/fine-antlr4/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-aspectj/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-commons-logging/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-cssparser/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-freehep/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-hsqldb/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-jgit/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-org-dom4j/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-sense4/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-third-default/fine-slf4j-api/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:System.getenv("JAVA_HOME"),include:"lib/tools.jar")
compile group: "com.fr.third.server", name: "servlet-api", version: "3.0"
testCompile 'junit:junit:4.12'
}

83
build.third_step2-jdk11.gradle

@ -57,45 +57,6 @@ sourceSets{
] ]
} }
} }
}
sourceSets.main.java.outputDir = file('build/classes/2')
repositories{
mavenCentral()
maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
}
//
FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
def MVN_BRANCH = branchVariable.toUpperCase()
//
dependencies{
compile fileTree(dir:"${srcDir}/fine-byte-buddy/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-commons-fileupload/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-httpcomponents/http-client/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-httpcomponents/http-core/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-poi/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-poi-old/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-redisson/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-xmlgraphics/xmlgraphics-batik/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-xmlgraphics/xmlgraphics-commons/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:System.getenv("JAVA_HOME"),include:"lib/tools.jar")
compile group: "com.fr.third.server", name: "servlet-api", version: "3.0"
testCompile 'junit:junit:4.12'
}
//
def dataContent = { def dir ->
copySpec{
from ("${dir}"){
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html'
}
}
} }
def resourceDirs = [ def resourceDirs = [
@ -127,17 +88,37 @@ def resourceDirs = [
"${srcDir}/fine-xmlgraphics/xmlgraphics-commons/src/main/java" "${srcDir}/fine-xmlgraphics/xmlgraphics-commons/src/main/java"
] ]
task copyFiles(type:Copy,dependsOn:'compileJava'){ sourceSets.main.java.outputDir = file('build/classes/2')
resourceDirs.each { sourceSets.main.resources.srcDirs = resourceDirs
String resourceDir -> sourceSets.main.resources.excludes = ['**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html']
if(file(resourceDir).exists()){ sourceSets.main.output.resourcesDir = file('build/resource/2')
copy {
println("----复制资源:从" + resourceDir + "到${classesDir}" ) repositories{
with dataContent.call(resourceDir) mavenCentral()
into "${classesDir}" maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
} }
}
} //
FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
def MVN_BRANCH = branchVariable.toUpperCase()
//
dependencies{
compile fileTree(dir:"${srcDir}/fine-byte-buddy/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-commons-fileupload/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-httpcomponents/http-client/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-httpcomponents/http-core/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-poi/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-poi-old/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-redisson/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-xmlgraphics/xmlgraphics-batik/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/fine-xmlgraphics/xmlgraphics-commons/lib",include: '**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:System.getenv("JAVA_HOME"),include:"lib/tools.jar")
compile group: "com.fr.third.server", name: "servlet-api", version: "3.0"
testCompile 'junit:junit:4.12'
} }
jar.dependsOn copyFiles

41
build.third_step3-jdk11.gradle

@ -39,7 +39,18 @@ sourceSets{
} }
} }
def resourceDirs = [
"${srcDir}/fine-itext/src",
"${srcDir}/fine-javassist/src/main/java",
"${srcDir}/fine-jedis/src",
"${srcDir}/fine-jboss-logging/src"
]
sourceSets.main.java.outputDir = file('build/classes/3') sourceSets.main.java.outputDir = file('build/classes/3')
sourceSets.main.resources.srcDirs = resourceDirs
sourceSets.main.resources.excludes = ['**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html']
sourceSets.main.output.resourcesDir = file('build/resource/3')
repositories{ repositories{
mavenCentral() mavenCentral()
@ -61,33 +72,3 @@ dependencies{
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
//
def dataContent = { def dir ->
copySpec{
from ("${dir}"){
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html'
}
}
}
def resourceDirs = [
"${srcDir}/fine-itext/src",
"${srcDir}/fine-javassist/src/main/java",
"${srcDir}/fine-jedis/src",
"${srcDir}/fine-jboss-logging/src"
]
task copyFiles(type:Copy,dependsOn:'compileJava'){
resourceDirs.each {
String resourceDir ->
if(file(resourceDir).exists()){
copy {
println("----复制资源:从" + resourceDir + "到${classesDir}" )
with dataContent.call(resourceDir)
into "${classesDir}"
}
}
}
}
jar.dependsOn copyFiles

34
build.third_step4-jdk11.gradle

@ -40,7 +40,18 @@ sourceSets{
} }
def resourceDirs = [
"${srcDir}/fine-itext-old/src",
"${srcDir}/fine-spring/src",
// "${srcDir}/fine-hibernate/src",
// "${srcDir}/fine-hibernate/resources",
"${srcDir}/fine-spring/resources"
]
sourceSets.main.java.outputDir = file('build/classes/4') sourceSets.main.java.outputDir = file('build/classes/4')
sourceSets.main.resources.srcDirs = resourceDirs
sourceSets.main.resources.excludes = ['**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html']
sourceSets.main.output.resourcesDir = file('build/resource/4')
repositories{ repositories{
mavenCentral() mavenCentral()
@ -72,26 +83,3 @@ def dataContent = { def dir ->
} }
} }
} }
def resourceDirs = [
"${srcDir}/fine-itext-old/src",
"${srcDir}/fine-spring/src",
// "${srcDir}/fine-hibernate/src",
// "${srcDir}/fine-hibernate/resources",
"${srcDir}/fine-spring/resources"
]
task copyFiles(type:Copy,dependsOn:'compileJava'){
resourceDirs.each {
String resourceDir ->
if(file(resourceDir).exists()){
copy {
println("----复制资源:从" + resourceDir + "到${classesDir}" )
with dataContent.call(resourceDir)
into "${classesDir}"
}
}
}
}
jar.dependsOn copyFiles

43
build.third_step5-jdk11.gradle

@ -33,7 +33,18 @@ sourceSets{
} }
def resourceDirs = [
// "${srcDir}/fine-itext-old/src",
// "${srcDir}/fine-spring/src",
// "${srcDir}/fine-spring/resources",
"${srcDir}/fine-hibernate/src",
"${srcDir}/fine-hibernate/resources"
]
sourceSets.main.java.outputDir = file('build/classes/5') sourceSets.main.java.outputDir = file('build/classes/5')
sourceSets.main.resources.srcDirs = resourceDirs
sourceSets.main.resources.excludes = ['**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html']
sourceSets.main.output.resourcesDir = file('build/resource/5')
repositories{ repositories{
mavenCentral() mavenCentral()
@ -56,35 +67,3 @@ dependencies{
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
//
def dataContent = { def dir ->
copySpec{
from ("${dir}"){
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html'
}
}
}
def resourceDirs = [
// "${srcDir}/fine-itext-old/src",
// "${srcDir}/fine-spring/src",
// "${srcDir}/fine-spring/resources",
"${srcDir}/fine-hibernate/src",
"${srcDir}/fine-hibernate/resources"
]
task copyFiles(type:Copy,dependsOn:'compileJava'){
resourceDirs.each {
String resourceDir ->
if(file(resourceDir).exists()){
copy {
println("----复制资源:从" + resourceDir + "到${classesDir}" )
with dataContent.call(resourceDir)
into "${classesDir}"
}
}
}
}
jar.dependsOn copyFiles

37
build.third_step6-jdk11.gradle

@ -31,7 +31,16 @@ sourceSets{
} }
} }
def resourceDirs = [
"${srcDir}/fine-druid/src",
"${srcDir}/fine-socketio/src"
]
sourceSets.main.java.outputDir = file('build/classes/6') sourceSets.main.java.outputDir = file('build/classes/6')
sourceSets.main.resources.srcDirs = resourceDirs
sourceSets.main.resources.excludes = ['**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html']
sourceSets.main.output.resourcesDir = file('build/resource/6')
repositories{ repositories{
mavenCentral() mavenCentral()
@ -55,31 +64,3 @@ dependencies{
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
//
def dataContent = { def dir ->
copySpec{
from ("${dir}"){
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html'
}
}
}
def resourceDirs = [
"${srcDir}/fine-druid/src",
"${srcDir}/fine-socketio/src"
]
task copyFiles(type:Copy,dependsOn:'compileJava'){
resourceDirs.each {
String resourceDir ->
if(file(resourceDir).exists()){
copy {
println("----复制资源:从" + resourceDir + "到${classesDir}" )
with dataContent.call(resourceDir)
into "${classesDir}"
}
}
}
}
jar.dependsOn copyFiles

26
build.third_step7-jdk11.gradle

@ -31,7 +31,15 @@ sourceSets{
} }
} }
def resourceDirs = [
"${srcDir}/fine-quartz/src"
]
sourceSets.main.java.outputDir = file('build/classes/7') sourceSets.main.java.outputDir = file('build/classes/7')
sourceSets.main.resources.srcDirs = resourceDirs
sourceSets.main.resources.excludes = ['**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html']
sourceSets.main.output.resourcesDir = file('build/resource/7')
repositories{ repositories{
mavenCentral() mavenCentral()
@ -62,21 +70,3 @@ def dataContent = { def dir ->
} }
} }
def resourceDirs = [
"${srcDir}/fine-quartz/src"
]
task copyFiles(type:Copy,dependsOn:'compileJava'){
resourceDirs.each {
String resourceDir ->
if(file(resourceDir).exists()){
copy {
println("----复制资源:从" + resourceDir + "到${classesDir}" )
with dataContent.call(resourceDir)
into "${classesDir}"
}
}
}
}
jar.dependsOn copyFiles

38
build.third_step8-jdk11.gradle

@ -29,9 +29,17 @@ sourceSets{
] ]
} }
} }
} }
def resourceDirs = [
"${srcDir}/fine-ehcache/src",
"${srcDir}/fine-ehcache/recources"
]
sourceSets.main.java.outputDir = file('build/classes/8') sourceSets.main.java.outputDir = file('build/classes/8')
sourceSets.main.resources.srcDirs = resourceDirs
sourceSets.main.resources.excludes = ['**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html']
sourceSets.main.output.resourcesDir = file('build/resource/8')
repositories{ repositories{
mavenCentral() mavenCentral()
@ -53,31 +61,3 @@ dependencies{
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
//
def dataContent = { def dir ->
copySpec{
from ("${dir}"){
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html'
}
}
}
def resourceDirs = [
"${srcDir}/fine-ehcache/src",
"${srcDir}/fine-ehcache/recources"
]
task copyFiles(type:Copy,dependsOn:'compileJava'){
resourceDirs.each {
String resourceDir ->
if(file(resourceDir).exists()){
copy {
println("----复制资源:从" + resourceDir + "到${classesDir}" )
with dataContent.call(resourceDir)
into "${classesDir}"
}
}
}
}
jar.dependsOn copyFiles

Loading…
Cancel
Save