Browse Source

Merge pull request #64 in CORE/base-third from ~DANIEL/base-third:feature/10.0 to feature/10.0

* commit 'a4dd7ba81bc5e5c1dc68fa687dbb30d8c65afc63':
  build
research/11.0
daniel 7 years ago
parent
commit
0c5583bfbc
  1. 45
      build.third_step0.gradle

45
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'
@ -35,37 +33,40 @@ def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf (java.io.File.s
def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1) def branchName=buildDir.substring(buildDir.lastIndexOf (java.io.File.separator)+1)
def srcDir="." def srcDir="."
configurations {
thirdjar
}
dependencies { dependencies {
compile "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT" thirdjar "com.fr.third:fine-third:10.0-FEATURE-SNAPSHOT"
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
task unJar{
ant{
mkdir(dir:"build/classes/main")
println "------------------------------------------------unjar"
unjar(dest:"build/classes/main"){ task unpack(type:Copy) {
fileset(dir: configurations.compile.asPath){ delete classesDir
include(name:'fine-third*.jar') destinationDir=file(classesDir)
println(configurations.thirdjar.singleFile)
from {
zipTree(configurations.thirdjar.singleFile)
} }
fileset(dir:"../../finereport-lib-other/${branchName}"){ from {
include(name:"batik-all-1.9.jar") zipTree("fine-quartz/lib/c3p0-0.9.1.1.jar")
} }
fileset(dir:"${srcDir}/fine-poi/lib"){
include(name:'**/*.jar') from {
} zipTree("fine-spring/lib/aopalliance-1.0.jar")
fileset(dir:"${srcDir}/fine-quartz/lib"){
include(name:'c3p0-0.9.1.1.jar')
}
fileset(dir:"${srcDir}/fine-spring/lib"){
include(name:'aopalliance-1.0.jar')
} }
fileset(dir:"${srcDir}/build/libs"){ from {
include(name:"*.jar") zipTree("fine-poi/lib/curvesapi-1.03.jar")
} }
fileTree(dir:"build/libs",include:"**/*.jar").each {
File file -> from {
zipTree(file)
} }
} }
} }
jar.dependsOn unpack

Loading…
Cancel
Save