-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
53 lines (45 loc) · 1.56 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
import groovy.json.JsonSlurper
apply plugin: 'application'
apply plugin: 'java-library'
group 'org.iot-dsa'
mainClassName = 'org.iot.dsa.dslink.DSLink'
sourceCompatibility = 1.8
targetCompatibility = 1.8
build {
def inputFile = file('dslink.json')
def json = new JsonSlurper().parseText(inputFile.text)
version = json.version
}
repositories {
//mavenLocal()
jcenter()
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:+'
implementation 'com.github.iot-dsa-v2:driver-framework-java-v2-prototype:master-SNAPSHOT'
implementation 'org.apache.commons:commons-lang3:3.4'
implementation 'commons-logging:commons-logging:+'
//Testing framework
//testCompile ':driver-framework-java-v2-prototype:+:tests'
//Python for Java for python tests
testImplementation group: 'org.python', name: 'jython-standalone', version: '2.7.0'
//Diff utils and dependency for exact match test
testImplementation 'com.github.bkromhout:java-diff-utils:+'
testImplementation 'org.apache.commons:commons-lang3:3.4'
//Junit for automated build/testing
testImplementation 'junit:junit:+'
//For unit tests
testImplementation 'org.mockito:mockito-all:+'
}
applicationDistribution.from(new File(project.projectDir, "/dslink.json"))
run {
args System.getProperty("exec.args", "").split()
workingDir project.buildDir
}
wrapper {
gradleVersion = '4.10.2'
}