-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (36 loc) · 1.05 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.20"
kotlin("kapt") version "1.9.20"
kotlin("plugin.serialization") version "1.9.20"
}
val ktorVersion: String by project
allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
repositories {
mavenCentral()
mavenLocal()
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository")
maven("https://jitpack.io")
}
dependencies {
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.3.2")
}
tasks.withType<JavaCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += arrayOf(
"-Xcontext-receivers",
"-opt-in=kotlin.ExperimentalStdlibApi",
"-opt-in=kotlin.experimental.ExperimentalTypeInference",
"-opt-in=kotlinx.coroutines.DelicateCoroutinesApi",
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
)
}
}
}