-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
68 lines (56 loc) · 1.63 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
}
group = extra["project.group"] as String
version = extra["project.version"] as String
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
kotlin {
jvm {
jvmToolchain(17)
withJava()
}
sourceSets {
val jvmMain by getting {
dependencies {
implementation(compose.desktop.currentOs)
implementation(compose.material3)
// implementation(compose.materialIconsExtended)
implementation("io.github.rukins:gkeepapi:${extra["gkeepapi.version"]}")
}
}
val jvmTest by getting
}
}
compose.desktop {
application {
mainClass = "io.github.rukins.gkeep.AppKt"
nativeDistributions {
packageName = name
packageVersion = version.toString()
targetFormats(
TargetFormat.Deb, TargetFormat.Rpm,
TargetFormat.Msi,
TargetFormat.Dmg,
TargetFormat.AppImage
)
val iconsRoot = project.file("src/jvmMain/resources/logo")
linux {
iconFile.set(iconsRoot.resolve("linux.png"))
}
windows {
iconFile.set(iconsRoot.resolve("windows.ico"))
}
macOS {
iconFile.set(iconsRoot.resolve("macos.icns"))
}
modules("java.net.http")
modules("jdk.unsupported")
}
}
}