-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
55 lines (44 loc) · 1.13 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
apply plugin: 'application'
apply plugin: 'java'
// Version is taken from dslink.json
build {
version = new groovy.json.JsonSlurper().parseText(file('dslink.json').text).version
}
mainClassName = 'org.iot.dsa.dslink.DSLink'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenLocal()
maven {
url 'https://jitpack.io'
}
}
repositories {
jcenter()
mavenLocal()
maven {
url 'https://jitpack.io'
}
}
dependencies {
//implementation 'org.iot-dsa:dslink-v2-websocket:+' //for a locally installed sdk
implementation 'com.github.iot-dsa-v2.sdk-dslink-java-v2:dslink-v2-websocket:0.75.2'
implementation 'com.sun.mail:javax.mail:1.6.2'
}
applicationDistribution.from(new File(project.projectDir, "/dslink.json"))
distZip {
archiveName project.name + ".zip"
eachFile { file ->
String path = file.relativePath
file.setPath(path.substring(path.indexOf("/")+1,path.length()))
}
}
distTar.enabled = false
run {
args System.getProperty("exec.args", "").split()
workingDir project.buildDir
}
wrapper {
gradleVersion = '6.4.1'
}