forked from MarcinMoskala/kotlin-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
37 lines (29 loc) · 974 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
@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")
}