You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
608 B
Groovy
33 lines
608 B
Groovy
4 years ago
|
plugins {
|
||
|
id 'java'
|
||
|
id 'maven'
|
||
|
}
|
||
|
|
||
|
tasks.withType(JavaCompile) {
|
||
|
options.encoding = 'UTF-8'
|
||
|
}
|
||
|
|
||
|
sourceCompatibility = 1.8
|
||
|
targetCompatibility = 1.8
|
||
|
|
||
|
configurations.all {
|
||
|
}
|
||
|
|
||
|
sourceSets {
|
||
|
main.java.srcDir "src/main"
|
||
|
test.java.srcDir "src/test"
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
|
||
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||
|
}
|
||
|
|
||
|
jar {
|
||
|
from configurations.compile.collect { zipTree it }
|
||
|
manifest.attributes "Main-Class": "sh.adb.sensor-community-JAVA-API.Main"
|
||
|
}
|