-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
79 lines (66 loc) · 2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
kotlin("multiplatform") version "2.0.0-RC3"
}
group = "de.solugo.gitversion"
version = "1.0.0"
repositories {
mavenCentral()
}
kotlin {
linuxX64("linuxX64") {
val main by compilations.getting
val git by main.cinterops.creating
binaries {
executable {
entryPoint = "main"
baseName = "gitversion"
}
all {
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xoverride-konan-properties=linkerGccFlags=-lgcc -lgcc_eh -lc",
)
linkerOpts("--as-needed")
}
}
}
mingwX64("windowsX64") {
val main by compilations.getting
val git by main.cinterops.creating
binaries {
executable {
entryPoint = "main"
baseName = "gitversion"
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xoverride-konan-properties=linkerGccFlags=-lgcc -lgcc_eh -lc",
)
}
}
}
sourceSets {
val nativeMain by creating {
dependencies {
implementation("com.squareup.okio:okio:3.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.6")
}
}
val nativeTest by creating {
dependencies {
implementation("org.jetbrains.kotlin:kotlin-test:1.9.22")
implementation("com.willowtreeapps.assertk:assertk:0.28.0")
}
}
val linuxX64Main by getting
val linuxX64Test by getting
val windowsX64Main by getting
val windowsX64Test by getting
}
}
tasks.withType<AbstractTestTask> {
testLogging {
events(TestLogEvent.PASSED, TestLogEvent.FAILED)
showExceptions = true
exceptionFormat = TestExceptionFormat.FULL
}
}