-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (40 loc) · 1.06 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
import org.jetbrains.kotlin.config.AnalysisFlag.Flags.experimental
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.Coroutines
import org.jetbrains.kotlin.js.translate.context.Namer.kotlin
buildscript {
var kotlin_version: String by extra
kotlin_version = "1.2.41"
repositories {
mavenCentral()
}
dependencies {
classpath(kotlinModule("gradle-plugin", kotlin_version))
}
}
plugins {
java
}
group = "org.augbari"
version = "1.0"
apply {
plugin("kotlin")
}
val kotlin_version: String by extra
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile(kotlinModule("stdlib-jdk8", kotlin_version))
testCompile("junit", "junit", "4.12")
compile("org.eclipse.paho", "org.eclipse.paho.client.mqttv3", "1.0.2")
compile("org.json", "json", "20180130")
compile("org.jfree", "jfreechart", "1.0.19")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}