|
|
|
@ -4,7 +4,7 @@ tasks.withType(JavaCompile){
|
|
|
|
|
options.encoding = 'UTF-8' |
|
|
|
|
} |
|
|
|
|
//指定构建的jdk版本 |
|
|
|
|
sourceCompatibility=1.8 |
|
|
|
|
sourceCompatibility=1.7 |
|
|
|
|
//指定生成的jar包版本 |
|
|
|
|
version='8.0' |
|
|
|
|
|
|
|
|
@ -30,6 +30,7 @@ FileTree files =fileTree(dir:'./',include:'build.gradle')
|
|
|
|
|
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('\\')) |
|
|
|
|
buildDir=buildDir.substring(0,buildDir.lastIndexOf ('\\')) |
|
|
|
|
def branchName=buildDir.substring(buildDir.lastIndexOf ('\\')+1) |
|
|
|
|
|
|
|
|
|
//声明外部依赖 |
|
|
|
|
dependencies{ |
|
|
|
|
compile fileTree(dir:'../../../finereport-lib-stable',include:'**/*.jar') |
|
|
|
@ -62,7 +63,6 @@ task copyFile(type:Copy,dependsOn:compileJava){
|
|
|
|
|
task compressJS{ |
|
|
|
|
ant.taskdef(name:'yuicompress',classname:'com.yahoo.platform.yui.compressor.YUICompressTask'){ |
|
|
|
|
classpath { |
|
|
|
|
|
|
|
|
|
fileset(dir:'../../../finereport-lib4build-stable',includes:'**/*.jar') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|