LeoColman
04/10/2025, 1:33 PMChris Lee
04/10/2025, 2:05 PMLeoColman
04/10/2025, 2:12 PMChris Lee
04/10/2025, 2:14 PMmergeServiceFiles()
is what you want)LeoColman
04/10/2025, 3:13 PMval shadowJar by tasks.named<ShadowJar>("shadowJar") {
dependsOn(configurations)
minimize {
exclude(dependency(dependencies.compose.desktop.macos_x64))
exclude(dependency(dependencies.compose.desktop.macos_arm64))
exclude(dependency(dependencies.compose.desktop.linux_x64))
exclude(dependency(dependencies.compose.desktop.linux_arm64))
exclude(dependency(dependencies.compose.desktop.windows_x64))
}
// Some default shadow setup
mergeServiceFiles()
isReproducibleFileOrder = true
archiveClassifier = null as String?
archiveVersion = "$version-desktop"
archiveBaseName = project.name
// Relocate output jar into other folder
layout.buildDirectory.dir("libs").get().asFile.also { destinationDirectory = it }
// Don't forget to point into Main file which contains main() function
manifest {
attributes("Main-Class" to "br.com.colman.pikframe.MainKt")
}
}
LeoColman
04/10/2025, 3:19 PMChris Lee
04/10/2025, 3:20 PMLeoColman
04/10/2025, 3:27 PMLeoColman
04/10/2025, 3:33 PMval shadowJar by tasks.named<ShadowJar>("shadowJar") {
dependsOn(configurations)
// Some default shadow setup
mergeServiceFiles()
isReproducibleFileOrder = true
archiveClassifier = null as String?
archiveVersion = "$version-desktop"
archiveBaseName = project.name
// Relocate output jar into other folder
layout.buildDirectory.dir("libs").get().asFile.also { destinationDirectory = it }
// Don't forget to point into Main file which contains main() function
manifest {
attributes("Main-Class" to "br.com.colman.pikframe.MainKt")
}
}
It's no longe optimized, but that's a different issuesam
04/11/2025, 12:51 AM