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.

34 lines
694 B
Groovy

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'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
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"
}