-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
40 lines (36 loc) · 1.07 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
plugins {
kotlin("multiplatform") version "1.9.0"
kotlin("plugin.serialization") version "1.8.21"
}
group = "city.atomic"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
// This project only supports Windows (Automation Studio itself is Windows-only)
val nativeTarget = mingwX64("native")
nativeTarget.apply {
binaries {
executable {
entryPoint = "main"
runTask?.run {
val args = providers.gradleProperty("runArgs")
argumentProviders.add(CommandLineArgumentProvider {
args.orNull?.split(' ') ?: emptyList()
})
}
}
}
}
sourceSets {
val nativeMain by getting {
dependencies {
implementation("io.github.pdvrieze.xmlutil:serialization:0.86.1")
implementation("com.github.ajalt.clikt:clikt:4.2.0")
implementation("com.squareup.okio:okio:3.5.0")
}
}
val nativeTest by getting
}
}