-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
42 lines (38 loc) · 909 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
plugins {
`full-js`
`desktop-X86`
`stdx-module`
`stdx-ktlint`
`stdx-publishing`
`stdx-generated-elements`
}
kotlin {
jvm {
compilations.all {
kotlinOptions {
jvmTarget = "11"
}
}
}
sourceSets {
commonMain {
dependencies {
api("io.github.microutils", "kotlin-logging", "3.0.4")
}
}
findByName("jvmTest")?.apply {
dependencies {
implementation("org.slf4j", "slf4j-simple", "2.0.6")
}
}
}
}
tasks {
val generateLoggerFunctions = task<GenerateLoggerFunctionsTask>("generateLoggerFunctions") {
`package`.set("dev.schlaubi.stdx.logging")
logLevels.set(listOf("debug", "trace", "error", "info", "warn"))
}
generateElements {
dependsOn(generateLoggerFunctions)
}
}