2015-05-17 14:30:30 +03:00
|
|
|
apply plugin: 'java'
|
2015-12-06 18:05:56 +03:00
|
|
|
apply plugin: 'groovy'
|
2015-05-17 14:30:30 +03:00
|
|
|
|
2015-06-06 15:24:53 +03:00
|
|
|
group = 'org.rehlds.flightrec'
|
2015-06-06 20:50:56 +03:00
|
|
|
version = rootProject.version
|
2015-06-06 15:24:53 +03:00
|
|
|
|
2015-05-17 14:30:30 +03:00
|
|
|
sourceCompatibility = '1.7'
|
|
|
|
targetCompatibility = '1.7'
|
2015-05-25 17:16:30 +03:00
|
|
|
|
|
|
|
repositories {
|
2017-02-10 23:51:22 +03:00
|
|
|
mavenCentral()
|
2015-05-25 17:16:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2017-02-10 23:51:22 +03:00
|
|
|
testCompile 'org.codehaus.groovy:groovy-all:2.4.5'
|
|
|
|
testCompile "junit:junit:4.12"
|
|
|
|
compile project(':flightrec/decoder_api')
|
2015-06-06 15:24:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
task uberjar(type: Jar, dependsOn: ['check', ':flightrec/decoder_api:build']) {
|
2017-02-10 23:51:22 +03:00
|
|
|
from files(sourceSets.main.output.classesDir)
|
|
|
|
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
exclude('META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.LIST') //exclude all signing stuff
|
2015-06-06 15:24:53 +03:00
|
|
|
|
2017-02-10 23:51:22 +03:00
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': 'org.rehlds.flightrec.main.FlightRecorder'
|
|
|
|
attributes 'Implementation-Vendor': 'Sun Microsystems, Inc'
|
|
|
|
attributes 'Implementation-Title': 'Java Runtime Environment'
|
|
|
|
attributes 'Implementation-Version': '1.7.0'
|
|
|
|
}
|
2015-06-06 15:24:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(AbstractCompile) {
|
2017-02-10 23:51:22 +03:00
|
|
|
options.encoding = 'UTF-8'
|
2015-05-25 17:16:30 +03:00
|
|
|
}
|