-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
54 lines (41 loc) · 1.31 KB
/
build.gradle.kts
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
import groovy.lang.Closure
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
jcenter()
maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap") } // while you are on 1.3-RC
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-serialization:1.3.0-rc-190")
}
}
plugins {
base
kotlin("jvm") version "1.3.0-rc-190"
}
group = "org.dronix.os"
version = "1.0-SNAPSHOT"
repositories {
maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap") }
maven { setUrl("https://kotlin.bintray.com/kotlinx" )}
mavenCentral()
}
dependencies {
compile(kotlin("stdlib-jdk8"))
compile("org.jetbrains.kotlin:kotlin-reflect:1.3.0-rc-190")
compile("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.8.3-rc13")
compile("com.amazonaws:aws-iot-device-sdk-java:1.2.0")
compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.1-eap13")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
val libJarTask = declareMyJarTask()
task("allJar") {
dependsOn(libJarTask.name)
subprojects.forEach{dependsOn("${it.path}:${it.name}Jar") }
}
task("runApp", Exec::class){
workingDir = File("./build/New_libs")
setCommandLine("java -cp \"org.dronix.os-main-1.0-SNAPSHOT.jar:./*\" org.dronix.os.tool.main.MainKt")
}