|
|
|
/*
|
|
|
|
* This file was generated by the Gradle 'init' task.
|
|
|
|
*/
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'maven-publish'
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
maven {
|
|
|
|
url = uri('http://mvn.finedevelop.com/repository/maven-public/')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
//使用本地jar
|
|
|
|
implementation fileTree(dir: 'lib', include: ['*.jar'])
|
|
|
|
implementation 'com.fr.third:fine-third:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.activator:fine-activator:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.core:fine-core:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.webui:fine-webui:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.datasource:fine-datasource:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.decision:fine-decision:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.decision:fine-decision-report:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.schedule:fine-schedule:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.schedule:fine-schedule-report:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.intelligence:fine-swift:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.intelligence:fine-accumulator:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.report:fine-report-engine:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'com.fr.report:fine-report-designer:10.0-RELEASE-SNAPSHOT'
|
|
|
|
implementation 'io.socket:socket.io-client:0.7.0'
|
|
|
|
implementation 'org.aspectj:aspectjrt:1.6.9'
|
|
|
|
implementation 'org.swingexplorer:swexpl:2.0'
|
|
|
|
implementation 'org.swingexplorer:swag:1.0'
|
|
|
|
implementation 'org.apache.tomcat:tomcat-catalina:8.5.32'
|
|
|
|
implementation 'mysql:mysql-connector-java:5.1.44'
|
|
|
|
implementation 'com.fr.third:jxbrowser:6.23.1'
|
|
|
|
implementation 'com.fr.third:jxbrowser-mac:6.23.1'
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
testImplementation 'org.easymock:easymock:3.5.1'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'com.fr.plugin'
|
|
|
|
version = '10.0'
|
|
|
|
sourceCompatibility = '8'
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
maven(MavenPublication) {
|
|
|
|
from(components.java)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ant.importBuild("ant_build.xml")
|
|
|
|
//定义ant变量
|
|
|
|
ant.projectDir = projectDir
|
|
|
|
ant.references["compile.classpath"] = ant.path {
|
|
|
|
fileset(dir: "lib", includes: '*.jar')
|
|
|
|
fileset(dir: "$projectDir/webroot/WEB-INF/lib", includes: '**/*.jar')
|
|
|
|
fileset(dir: ".",includes:"**/*.jar" )
|
|
|
|
}
|
|
|
|
|
|
|
|
//clean -> classes -> copyFiles -> compile_javas(ant加密) -> preJar -> makeJar->copyFile->zip
|
|
|
|
classes.dependsOn('clean')
|
|
|
|
|
|
|
|
|
|
|
|
task copyFiles(type: Copy,dependsOn: 'classes'){
|
|
|
|
from "$buildDir/classes/java/main"
|
|
|
|
from "$buildDir/resources/main"
|
|
|
|
into "$projectDir/classes"
|
|
|
|
}
|
|
|
|
|
|
|
|
task preJar(type:Copy,dependsOn: 'compile_javas'){
|
|
|
|
from "$projectDir/classes"
|
|
|
|
into "$buildDir/classes/java/main"
|
|
|
|
include "**/*.class"
|
|
|
|
doLast(){
|
|
|
|
delete file("$projectDir/classes")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jar.dependsOn("preJar")
|
|
|
|
|
|
|
|
task makeJar(type: Jar,dependsOn: preJar){
|
|
|
|
from fileTree(dir:"$buildDir/classes/java/main")
|
|
|
|
destinationDir = file("$buildDir/libs")
|
|
|
|
}
|
|
|
|
|
|
|
|
task copyFile(type: Copy,dependsOn: ["jar"]){
|
|
|
|
from "$buildDir/libs"
|
|
|
|
from "$projectDir/lib"
|
|
|
|
from "$projectDir/plugin.xml"
|
|
|
|
into file("$buildDir/temp/fr-"+"$project.name"+"-$project.version")
|
|
|
|
}
|
|
|
|
|
|
|
|
task zip(type:Zip,dependsOn:["copyFile"]){
|
|
|
|
from "$buildDir/temp"
|
|
|
|
destinationDir file("$buildDir/install")
|
|
|
|
//生成的文件名: baseName-appendix-0.0.1.zip
|
|
|
|
// baseName 'baseName'
|
|
|
|
// appendix 'appendix'
|
|
|
|
// version '0.0.1'
|
|
|
|
}
|
|
|
|
|
|
|
|
//控制build时包含哪些文件,排除哪些文件
|
|
|
|
processResources {
|
|
|
|
// exclude everything
|
|
|
|
// 用*.css没效果
|
|
|
|
// exclude '**/*.css'
|
|
|
|
// except this file
|
|
|
|
// include 'xx.xml'
|
|
|
|
}
|