-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
82 lines (69 loc) · 1.71 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
80
81
82
plugins {
kotlin("multiplatform") version "2.0.0"
id("com.lovelysystems.gradle") version ("1.13.0")
application
id("org.jetbrains.kotlinx.kover") version "0.8.1"
}
repositories {
mavenCentral()
}
group = "com.lovelysystems"
kotlin {
jvm {
withJava()
}
linuxX64 {
binaries.executable()
}
linuxArm64 {
binaries.executable()
}
macosArm64 {
binaries.executable()
}
sourceSets {
commonMain {
dependencies {
implementation(libs.kotlin.multiplatform.diff)
implementation(libs.kotlinx.io.core)
implementation(libs.clikt)
}
}
commonTest {
dependencies {
implementation(testLibs.kotest.assertions.core)
implementation(kotlin("test"))
}
}
jvmTest {
dependencies {
implementation(testLibs.junit.jupiter.api)
implementation(testLibs.junit.jupiter.params)
implementation(kotlin("test-junit5"))
implementation(testLibs.testcontainers)
implementation(libs.logback.classic)
}
}
}
}
application {
mainClass.set("cz.startnet.utils.pgdiff.CLIKt")
applicationName = "apgdiff"
}
tasks.withType<Test> {
useJUnitPlatform()
}
lovely {
gitProject()
dockerProject(
"lovelysystems/apgdiff",
platforms = listOf("linux/amd64", "linux/arm64"),
) {
into("amd64") {
from(tasks["linkReleaseExecutableLinuxX64"].outputs)
}
into("arm64") {
from(tasks["linkReleaseExecutableLinuxArm64"].outputs)
}
}
}