-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle.kts
46 lines (37 loc) · 1.12 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
@file:Suppress("OPT_IN_USAGE")
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.0.10"
kotlin("plugin.power-assert") version "2.0.10"
application
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
implementation("com.sksamuel.aedile:aedile-core:1.3.1") // Needed for CompanyDetailsRepository
}
tasks.withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs = listOf("-Xcontext-receivers", "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi")
}
java.sourceSets["test"].java {
srcDir("src/main/kotlin")
}
powerAssert {
functions = listOf("kotlin.assert", "kotlin.test.assertEquals")
}
// Uncomment to use Loom
//tasks.withType<JavaCompile>().configureEach {
// options.compilerArgs.add("--enable-preview")
//}
//
//kotlin {
// jvmToolchain(20)
//}