-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (58 loc) · 1.68 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
plugins {
id 'java'
id 'maven'
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
}
group = 'com.colony'
version = '1.0'
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDirs "src/main/resources", "src/main/configs"
}
}
test {
java {
srcDir 'tests'
}
}
}
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven { url "https://oss.sonatype.org/content/groups/public" }
}
jar {
manifest {
attributes "Main-Class": "com.colony.Application"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
dependencies {
// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-jdk8
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: '1.3.72'
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7"
// https://mvnrepository.com/artifact/io.reactivex.rxjava2/rxjava
compile group: 'io.reactivex.rxjava2', name: 'rxjava', version: '2.1.9'
// https://mvnrepository.com/artifact/com.diozero/diozero-provider-wiringpi
compile group: 'com.diozero', name: 'diozero-provider-wiringpi', version: '0.11'
// https://mvnrepository.com/artifact/com.diozero/diozero-core
compile group: 'com.diozero', name: 'diozero-core', version: '0.11'
// https://mvnrepository.com/artifact/com.pi4j/pi4j-core
compile group: 'com.pi4j', name: 'pi4j-core', version: '1.2'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
runtimeClasspath files("build/classes/kotlin/main")
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}