We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be831e commit 7396f2eCopy full SHA for 7396f2e
1 file changed
plugins/conventions/src/main/kotlin/com/sphereon/gradle/plugin/ServiceDeployablePlugin.kt
@@ -62,6 +62,13 @@ class ServiceDeployablePlugin : Plugin<Project> {
62
outputDir.set(project.layout.buildDirectory.dir("merged-services/META-INF/services"))
63
}
64
65
+ project.tasks.named<Jar>("jvmJar") {
66
+ duplicatesStrategy = org.gradle.api.file.DuplicatesStrategy.EXCLUDE
67
+ from(project.provider { mainCompilation.output.classesDirs })
68
+ from(project.provider { mainCompilation.output.resourcesDir })
69
+ dependsOn("jvmMainClasses")
70
+ }
71
+
72
project.tasks.register<Jar>("buildFatJar") {
73
group = "build"
74
description = "Build executable fat JAR for ${project.name}"
0 commit comments