-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
38 lines (32 loc) · 1.11 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
id(libs.plugins.kotlin.jvm.pluginId) apply false
}
allprojects {
repositories {
mavenCentral()
google()
}
tasks {
withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
freeCompilerArgs = freeCompilerArgs +
"-Xexplicit-api=strict" +
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
}
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
}
withType<Test>().configureEach {
useJUnitPlatform()
listOf("goplay").forEach { brand ->
val username by variable("${brand}.username")
val password by variable("${brand}.password")
environment("${brand}.username", username)
environment("${brand}.password", password)
}
}
}
}