-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
78 lines (60 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
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("jvm")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
id("me.qoomon.git-versioning") version "6.4.3"
id("dev.hydraulic.conveyor") version "1.12"
}
group = "io.github.stefanoltmann"
version = "1.0.0"
gitVersioning.apply {
refs {
tag("v(?<version>.*)") {
version = "\${ref.version}"
}
}
}
repositories {
mavenCentral()
google()
maven { url = uri("https://jitpack.io") }
}
kotlin {
jvmToolchain(22)
}
dependencies {
/* Compose */
implementation(compose.desktop.currentOs)
implementation(compose.material3)
implementation(compose.components.resources)
/* Coroutines */
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
/* Metadata read & write */
implementation("com.ashampoo:kim:0.20.1")
/* VIPS */
implementation("app.photofox.vips-ffm:vips-ffm-core:1.4.0")
/* Conveyor */
linuxAmd64(compose.desktop.linux_x64)
macAmd64(compose.desktop.macos_x64)
macAarch64(compose.desktop.macos_arm64)
windowsAmd64(compose.desktop.windows_x64)
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "Thumbnail Fixer"
packageVersion = version.toString()
}
}
}
// region Work around temporary Compose bugs.
configurations.all {
attributes {
// https://github.com/JetBrains/compose-jb/issues/1404#issuecomment-1146894731
attribute(Attribute.of("ui", String::class.java), "awt")
}
}
// endregion