Browse Source

Merge pull request #65 in CORE/base-third from feature/10.0 to release/10.0

* commit '0c5583bfbc8dd063cf648a7cb9c58b303d1e6502':
  build
  build
  build
  build
  build
10.0
richie 7 years ago
parent
commit
7222b87649
  1. 68
      build.third_step0.gradle
  2. 7
      build.third_step1.gradle
  3. 7
      build.third_step2.gradle
  4. 7
      build.third_step3.gradle
  5. 7
      build.third_step4.gradle
  6. 7
      build.third_step5.gradle
  7. 9
      build.third_step6.gradle

68
build.third_step0.gradle

@ -1,5 +1,3 @@
apply plugin: 'java' apply plugin: 'java'
tasks.withType(JavaCompile){ tasks.withType(JavaCompile){
options.encoding = 'UTF-8' options.encoding = 'UTF-8'
@ -14,6 +12,12 @@ jar{
baseName="fine-third-10.0" baseName="fine-third-10.0"
} }
repositories {
mavenCentral()
maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
}
sourceSets{ sourceSets{
main{ main{
java{ java{
@ -25,36 +29,44 @@ sourceSets{
// //
FileTree files =fileTree(dir:'./',include:'build.*.gradle') FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('/')) def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf ('/')+1) def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
def srcDir="." def srcDir="."
task unJar{ configurations {
ant{ thirdjar
mkdir(dir:"build/classes/main") }
println "------------------------------------------------unjar"
dependencies {
unjar(dest:"build/classes/main"){ thirdjar "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT"
fileset(dir:"../../finereport-lib-base/${branchName}"){ testCompile 'junit:junit:4.12'
include(name:'3rd.jar') }
}
fileset(dir:"../../finereport-lib-other/${branchName}"){
include(name:"batik-all-1.9.jar") task unpack(type:Copy) {
} delete classesDir
fileset(dir:"${srcDir}/fine-poi/lib"){ destinationDir=file(classesDir)
include(name:'**/*.jar') println(configurations.thirdjar.singleFile)
} from {
fileset(dir:"${srcDir}/fine-quartz/lib"){ zipTree(configurations.thirdjar.singleFile)
include(name:'c3p0-0.9.1.1.jar') }
} from {
fileset(dir:"${srcDir}/fine-spring/lib"){ zipTree("fine-quartz/lib/c3p0-0.9.1.1.jar")
include(name:'aopalliance-1.0.jar') }
}
fileset(dir:"${srcDir}/build/libs"){ from {
include(name:"*.jar") zipTree("fine-spring/lib/aopalliance-1.0.jar")
} }
from {
zipTree("fine-poi/lib/curvesapi-1.03.jar")
}
fileTree(dir:"build/libs",include:"**/*.jar").each {
File file -> from {
zipTree(file)
} }
} }
} }
jar.dependsOn unpack

7
build.third_step1.gradle

@ -43,19 +43,20 @@ sourceSets{
sourceSets.main.output.classesDir = file('build/classes/1') sourceSets.main.output.classesDir = file('build/classes/1')
repositories{ repositories{
mavenCentral() mavenCentral()
maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
} }
// //
FileTree files =fileTree(dir:'./',include:'build.*.gradle') FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('/')) def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf ('/')+1) def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
// //
dependencies{ dependencies{
compile fileTree(dir:"${srcDir}/fine-poi/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-poi/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-quartz/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-quartz/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:"../../finereport-lib-base/${branchName}",include:'**/*.jar') compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT"
compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar')
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }

7
build.third_step2.gradle

@ -32,19 +32,20 @@ sourceSets{
sourceSets.main.output.classesDir = file('build/classes/2') sourceSets.main.output.classesDir = file('build/classes/2')
repositories{ repositories{
mavenCentral() mavenCentral()
maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
} }
// //
FileTree files =fileTree(dir:'./',include:'build.*.gradle') FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('/')) def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf ('/')+1) def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
// //
dependencies{ dependencies{
compile fileTree(dir:"${srcDir}/fine-aspectj/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-aspectj/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-spring/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-spring/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:"../../finereport-lib-base/${branchName}",include:'**/*.jar') compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT"
compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar')
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }

7
build.third_step3.gradle

@ -34,18 +34,19 @@ sourceSets.main.output.classesDir = file('build/classes/3')
repositories{ repositories{
mavenCentral() mavenCentral()
maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
} }
// //
FileTree files =fileTree(dir:'./',include:'build.*.gradle') FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('/')) def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf ('/')+1) def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
// //
dependencies{ dependencies{
compile fileTree(dir:"${srcDir}/fine-jboss-logging/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-jboss-logging/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:"../../finereport-lib-base/${branchName}",include:'**/*.jar') compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT"
compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar')
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }

7
build.third_step4.gradle

@ -33,18 +33,19 @@ sourceSets.main.output.classesDir = file('build/classes/4')
repositories{ repositories{
mavenCentral() mavenCentral()
maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
} }
// //
FileTree files =fileTree(dir:'./',include:'build.*.gradle') FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('/')) def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf ('/')+1) def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
// //
dependencies{ dependencies{
compile fileTree(dir:"${srcDir}/fine-hibernate/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-hibernate/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:"../../finereport-lib-base/${branchName}",include:'**/*.jar') compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT"
compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar')
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }

7
build.third_step5.gradle

@ -31,19 +31,20 @@ sourceSets.main.output.classesDir = file('build/classes/5')
repositories{ repositories{
mavenCentral() mavenCentral()
maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
} }
// //
FileTree files =fileTree(dir:'./',include:'build.*.gradle') FileTree files =fileTree(dir:'./',include:'build.*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('/')) def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf ('/')+1) def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
// //
dependencies{ dependencies{
compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'ojdbc7-12.1.0.jar') compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'ojdbc7-12.1.0.jar')
compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-druid/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:"../../finereport-lib-base/${branchName}",include:'**/*.jar') compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT"
compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar')
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }

9
build.third_step6.gradle

@ -49,12 +49,13 @@ sourceSets.main.output.classesDir = file('build/classes/6')
repositories{ repositories{
mavenCentral() mavenCentral()
maven { url "http://mvn.finedevelop.com/repository/maven-public/" }
} }
// //
FileTree files =fileTree(dir:'./',include:'build.*.gradle') FileTree files =fileTree(dir:'./',include:'build*.gradle')
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('/')) def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.separator))
def branchName=buildDir.substring(buildDir.lastIndexOf ('/')+1) def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
// //
dependencies{ dependencies{
@ -65,7 +66,7 @@ dependencies{
compile fileTree(dir:"${srcDir}/fine-redisson/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-redisson/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/fine-socketio/lib",include:'**/*.jar') compile fileTree(dir:"${srcDir}/fine-socketio/lib",include:'**/*.jar')
compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar') compile fileTree(dir:"${srcDir}/build/libs/",include:'**/*.jar')
compile fileTree(dir:"../../finereport-lib-base/${branchName}",include:'**/*.jar') compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT"
compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar') compile fileTree(dir:"../../finereport-lib-other/${branchName}",include:'**/*.jar')
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }

Loading…
Cancel
Save