-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
51 lines (39 loc) · 1.07 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}
plugins {
application
kotlin("jvm") version "1.4.30"
kotlin("plugin.serialization") version "1.4.30"
}
fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
group = "net.mamoe"
version = "1.0-SNAPSHOT"
application{
mainClass.set("RunKt")
}
repositories {
mavenCentral()
jcenter()
maven {
url = uri("https://dl.bintray.com/kotlin/ktor")
}
maven {
url = uri("https://dl.bintray.com/kotlin/kotlinx")
}
}
val serializationVersion = "1.0.0"
dependencies {
testImplementation(kotlin("test-junit"))
api(kotlinx("serialization-core", serializationVersion))
api(kotlinx("serialization-json", serializationVersion))
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs += "-Xjvm-default=all"
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}