-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (50 loc) · 1.33 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
55
56
57
58
59
60
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.io.*
val kotlinVersion = "1.2.70"
group = "your.package.name"
version = "v1.0-SNAPSHOT"
plugins {
java
application
kotlin("jvm") version "1.2.70"
}
tasks.withType<KotlinCompile> {
kotlinOptions { freeCompilerArgs = listOf("-Xjvm-default=enable") }
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
java.sourceSets {
"main" {
java.setSrcDirs(listOf("src"))
withConvention(KotlinSourceSet::class) {
kotlin.setSrcDirs(listOf("src"))
}
resources.setSrcDirs(listOf("res"))
}
"test" {
java.setSrcDirs(emptyList<Any>())
withConvention(KotlinSourceSet::class) {
kotlin.setSrcDirs(emptyList<Any>())
}
resources.setSrcDirs(emptyList<Any>())
}
}
repositories {
mavenCentral()
jcenter()
maven("https://dl.bintray.com/ice1000/ice1000")
maven("https://jitpack.io")
}
application {
mainClassName = "org.ice1000.devkt.Main"
}
dependencies {
compileOnly(kotlin("compiler-embeddable", kotlinVersion))
val version = "v1.5-alpha"
compileOnly(group = "com.github.ice1000.dev-kt", name = "common", version = version)
runtime(group = "com.github.ice1000.dev-kt", name = "swing", version = version)
}