-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
41 lines (32 loc) · 878 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import groovy.json.JsonSlurper
apply plugin: 'java'
apply plugin: 'application'
group 'org.iot-dsa'
mainClassName = 'org.iot.dsa.dslink.DSLink'
sourceCompatibility = 1.6
targetCompatibility = 1.6
build {
def inputFile = file('dslink.json')
def json = new JsonSlurper().parseText(inputFile.text)
version = json.version
}
repositories {
mavenCentral()
maven {
url 'https://jitpack.io'
}
}
dependencies {
//implementation 'org.iot-dsa:dslink-v2-websocket:+' //for locally installed sdk
implementation 'com.github.iot-dsa-v2:sdk-dslink-java-v2:+'
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'org.json:json:20171018'
}
applicationDistribution.from(new File(project.projectDir, "/dslink.json"))
run {
args System.getProperty("exec.args", "").split()
workingDir project.buildDir
}
wrapper {
gradleVersion = '4.10'
}