-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
38 lines (33 loc) · 1.31 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
alias(libs.plugins.jvm)
alias(libs.plugins.compose)
alias(libs.plugins.serialization)
}
group = "xyz.slkagura.editor"
version = "0.0.1"
/** All the compose dependencies settings can be found here: https://github.com/JetBrains/compose-multiplatform-desktop-template#creating-a-new-compose-project-without-an-ide */
/** And someone need to add multiplatform from here: https://github.com/JetBrains/compose-multiplatform-template/ */
compose.desktop {
application {
mainClass = "xyz.slkagura.editor.AppKt"
nativeDistributions {
targetFormats(TargetFormat.Exe)
packageName = "Registry Editor"
packageVersion = "1.0.0"
}
}
}
/** Add jvm library path in unit test task. Default property "java.library.path" is null. */
tasks.named<Test>("test") {
/** This path depends on libjni repository, please set to your project.*/
systemProperties["java.library.path"] = file("${project}/libjni/build/shared").canonicalPath
}
dependencies {
implementation("net.peanuuutz.tomlkt:tomlkt:0.3.7")
implementation(libs.jna)
implementation(libs.jna.platform)
implementation(compose.desktop.currentOs)
implementation(kotlin("stdlib-jdk8"))
testImplementation(libs.junit)
}