2020-02-27 03:46:54 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
allprojects {
|
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'eclipse'
|
2020-05-07 10:08:11 +00:00
|
|
|
version = '1.0.2'
|
2020-02-27 03:46:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultTasks('clean','distZip')
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
[compileJava, compileTestJava]*.options.collect {options ->options.encoding = 'UTF-8'}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile fileTree(dir: 'libs', include: '*.jar')
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes("Implementation-Title": project.name,
|
|
|
|
"Implementation-Version": project.version,
|
|
|
|
"Build-Time": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
|
|
|
"Build-Number": System.env.BUILD_NUMBER?System.env.BUILD_NUMBER:"-1",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
from (project.parent.projectDir) {
|
|
|
|
include 'NOTICE.txt'
|
|
|
|
include 'LICENSE.txt'
|
|
|
|
into('META-INF')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|