fangdong sun 8 years ago
parent
commit
d213b78945
  1. 1
      build.gradle
  2. 4
      build.gradle.bak
  3. 2
      designer_base/build.gradle
  4. 16
      designer_base/build.gradle.bak
  5. 2
      designer_chart/build.gradle
  6. 12
      designer_chart/build.gradle.bak

1
build.gradle

@ -2,7 +2,6 @@ apply plugin: "java"
tasks.withType(JavaCompile){
options.encoding = "UTF-8"
}
def basicDir="../../"
def libDir="${basicDir}/finereport-lib-stable"
//

4
build.gradle.bak

@ -2,10 +2,10 @@ apply plugin: "java"
tasks.withType(JavaCompile){
options.encoding = "UTF-8"
}
sourceCompatibility=1.7
def basicDir="../../"
def libDir="${basicDir}/finereport-lib-stable"
//
//
FileTree files =fileTree(dir:"./",include:"build.gradle")
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ("\\"))
def branchName=buildDir.substring(buildDir.lastIndexOf ("\\")+1)

2
designer_base/build.gradle

@ -56,7 +56,7 @@ task compressJS{
fileset(dir:'../../../finereport-lib4build-stable',includes:'**/*.jar')
}
}
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false", , charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false",charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){
fileset (dir:"${srcDir}/src"){
include (name:'**/*.js')
include (name:'**/*.css')

16
designer_base/build.gradle.bak

@ -3,11 +3,11 @@ apply plugin: 'java'
tasks.withType(JavaCompile){
options.encoding = 'UTF-8'
}
//jdk版本
//jdk版本
sourceCompatibility=1.8
//jar包版本
//jar包版本
version='8.0'
//jar包重命名
//jar包重命名
jar{
baseName='fr-designer-core'
}
@ -15,7 +15,7 @@ jar{
def srcDir="."
//
//
sourceSets{
main{
java{
@ -23,13 +23,13 @@ sourceSets{
}
}
}
//
//
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')
@ -37,7 +37,7 @@ compile fileTree(dir:'../../../',include:"finereport-*-stable/${branchName}/**/*
testCompile 'junit:junit:4.12'
}
//.java文件到classes文件夹下参与打包
//.java文件到classes文件夹下参与打包
task copyFile(type:Copy,dependsOn:compileJava){
copy{
from ("${srcDir}/src"){
@ -49,7 +49,7 @@ task copyFile(type:Copy,dependsOn:compileJava){
}
//js文件
//js文件
task compressJS{
ant.taskdef(name:'yuicompress',classname:'com.yahoo.platform.yui.compressor.YUICompressTask'){
classpath {

2
designer_chart/build.gradle

@ -54,7 +54,7 @@ task compressJS{
fileset(dir:'../../../finereport-lib4build-stable',includes:'**/*.jar')
}
}
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false", , charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false",charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){
fileset (dir:"${srcDir}/src"){
include (name:'**/*.js')
include (name:'**/*.css')

12
designer_chart/build.gradle.bak

@ -3,14 +3,14 @@ apply plugin: 'java'
tasks.withType(JavaCompile){
options.encoding = 'UTF-8'
}
//jdk版本
//jdk版本
sourceCompatibility=1.8
//jar包的版本
//jar包的版本
version='8.0'
def srcDir="."
//jar包进行重命名
//jar包进行重命名
jar{
baseName='fr-designer-chart'
@ -28,14 +28,14 @@ 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')
compile fileTree(dir:'../../../',include:"finereport-*-stable/${branchName}/**/*.jar")
testCompile 'junit:junit:4.12'
}
//.java classes文件夹下参与打包
//.java classes文件夹下参与打包
task copyFile(type:Copy,dependsOn:compileJava){
copy{
from ("${srcDir}/src"){
@ -47,7 +47,7 @@ task copyFile(type:Copy,dependsOn:compileJava){
}
//js文件
//js文件
task compressJS{
ant.taskdef(name:'yuicompress',classname:'com.yahoo.platform.yui.compressor.YUICompressTask'){
classpath {

Loading…
Cancel
Save