-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (37 loc) · 1.15 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.21"
id("io.gitlab.arturbosch.detekt") version "1.23.4"
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation("com.github.shiguruikai:combinatoricskt:1.6.0")
implementation("tools.aqua:z3-turnkey:4.12.2.1")
testImplementation(kotlin("test"))
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.4")
}
java {
sourceCompatibility = JavaVersion.VERSION_21
}
tasks.withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-opt-in=kotlin.ExperimentalStdlibApi")
jvmTarget = JvmTarget.JVM_21
languageVersion = KotlinVersion.KOTLIN_1_9
}
}
tasks.withType<Test> {
useJUnitPlatform {
excludeTags = setOf(getProperty("TEST_IGNORE_TAG", "playground"))
}
}
detekt {
config.from(files("detekt-config.yml"))
buildUponDefaultConfig = true
}
fun getProperty(key: String, default: String = ""): String = System.getenv(key) ?: default