Skip to content

Commit 08cb336

Browse files
committed
Dependencies centralisation
1 parent 6e708a8 commit 08cb336

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

app/build.gradle.kts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins{
1010
alias(libs.plugins.jetbrainsCompose)
1111
alias(libs.plugins.serialization)
1212

13-
id("de.undercouch.download") version "5.6.0"
13+
alias(libs.plugins.download)
1414
}
1515

1616
group = rootProject.group
@@ -40,14 +40,16 @@ compose.desktop {
4040
mainClass = "processing.app.ui.Splash"
4141

4242
nativeDistributions{
43-
includeAllModules = true
4443
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
4544
packageName = "Processing"
4645
packageVersion = rootProject.version as String
4746

4847
macOS{
49-
bundleID = "org.processingfoundation.processing.app"
48+
bundleID = "org.processing.app"
5049
iconFile = project.file("../build/macos/processing.icns")
50+
infoPlist{
51+
52+
}
5153
}
5254
windows{
5355
iconFile = project.file("../build/windows/processing.ico")
@@ -65,13 +67,11 @@ compose.desktop {
6567
}
6668
}
6769

68-
val compottieVersion = "2.0.0-rc02"
69-
7070
dependencies {
71-
implementation("com.formdev:flatlaf:3.4.1")
71+
implementation(libs.flatlaf)
7272

73-
implementation("net.java.dev.jna:jna:5.12.1")
74-
implementation("net.java.dev.jna:jna-platform:5.12.1")
73+
implementation(libs.jna)
74+
implementation(libs.jnaplatform)
7575

7676
implementation(project(":core"))
7777
runtimeOnly(project(":java"))
@@ -86,9 +86,8 @@ dependencies {
8686

8787
implementation(compose.desktop.currentOs)
8888

89-
implementation("io.github.alexzhirkevich:compottie:${compottieVersion}")
90-
91-
implementation("com.charleskorn.kaml:kaml:0.65.0")
89+
implementation(libs.compottie)
90+
implementation(libs.kaml)
9291
}
9392

9493
tasks.register<Copy>("copyCore"){

gradle/libs.versions.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ kotlin = "2.0.20"
33
compose-plugin = "1.7.1"
44

55
[libraries]
6+
flatlaf = { module = "com.formdev:flatlaf", version = "3.4.1" }
7+
jna = { module = "net.java.dev.jna:jna", version = "5.12.1" }
8+
jnaplatform = { module = "net.java.dev.jna:jna-platform", version = "5.12.1" }
9+
compottie = { module = "io.github.alexzhirkevich:compottie", version = "2.0.0-rc02" }
10+
kaml = { module = "com.charleskorn.kaml:kaml", version = "0.65.0" }
611

712
[plugins]
813
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
914
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
1015
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
11-
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
16+
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
17+
download = { id = "de.undercouch.download", version = "5.6.0" }

0 commit comments

Comments
 (0)