-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (59 loc) · 1.89 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
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import com.martmists.commons.isStable
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("jvm")
kotlin("plugin.compose")
kotlin("plugin.serialization")
id("org.jetbrains.compose")
id("com.github.ben-manes.versions")
}
group = "com.martmists"
version = "1.0.0"
repositories {
google()
mavenCentral()
maven("https://maven.martmists.com/snapshots")
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:${Versions.serialization}")
implementation("com.dorkbox:SystemTray:${Versions.systemTray}:all") // From my own Maven repository to get v4.5
implementation(compose.foundation)
implementation(compose.material3)
implementation(compose.animation)
implementation(compose.animationGraphics)
implementation(compose.ui)
implementation("org.jetbrains.compose.components:components-animatedimage:${Versions.compose}")
implementation(compose.uiTooling) {
exclude(group="org.jetbrains.compose.material", module="material")
}
runtimeOnly(compose.desktop.currentOs) {
exclude(group="org.jetbrains.compose.material", module="material")
}
}
compose {
desktop {
application {
mainClass = "com.martmists.wallpaperengine.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Deb)
packageName = "WallpaperEngine"
packageVersion = project.version as String
}
buildTypes {
release {
proguard {
isEnabled = false
}
}
}
}
}
}
tasks {
withType<DependencyUpdatesTask> {
rejectVersionIf {
isStable(currentVersion) && !isStable(candidate.version)
}
}
}