-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
51 lines (41 loc) · 1.24 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.20"
id("org.jetbrains.compose") version "1.2.0"
}
group = "com.snad.kvmapper"
version = "1.1"
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
testImplementation(kotlin("test"))
implementation(compose.desktop.currentOs)
testImplementation("app.cash.turbine:turbine:0.7.0")
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "16"
}
compose.desktop {
application {
mainClass = "com.snad.kvmapper.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
appResourcesRootDir.set(project.layout.projectDirectory.dir("resources"))
packageName = "KVMapper"
packageVersion = "1.1.0"
description = "Key Value Mapper"
copyright = "2022 SNAD. All rights reserved."
macOS {
iconFile.set(project.file("icon.icns"))
}
modules("java.instrument", "jdk.unsupported")
}
}
}