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.

35 lines
748 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 {
4 years ago
implementation 'org.jetbrains:annotations:20.1.0'
4 years ago
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
4 years ago
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"
}