-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (37 loc) · 983 Bytes
/
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
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.20-Beta"
id("org.jetbrains.dokka") version "1.7.20"
application
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.5")
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.2")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(8)
explicitApi = ExplicitApiMode.Strict
}
application {
mainClass.set("MainKt")
}
val compileKotlin: KotlinCompile by tasks
val compileTestKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
languageVersion = "1.9"
freeCompilerArgs += "-Xcontext-receivers"
}
compileTestKotlin.kotlinOptions {
languageVersion = "1.9"
freeCompilerArgs += "-Xcontext-receivers"
}