Skip to content

Commit 985c04b

Browse files
committed
cli: gradle add shadow jar plugin
1 parent 8cca291 commit 985c04b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/jooby-cli/src/main/resources/cli/build.gradle.hbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ buildscript {
1515
classpath "io.spring.gradle:dependency-management-plugin:1.0.8.RELEASE"
1616
{{#if kotlin}}classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"{{/if}}
1717
classpath "io.jooby:jooby-gradle-plugin:$joobyVersion"
18+
classpath "com.github.jengelman.gradle.plugins:shadow:5.1.0"
1819
}
1920
}
2021

2122
apply plugin: "io.spring.dependency-management"
2223
apply plugin: "com.google.osdetector"
24+
apply plugin: "com.github.johnrengelman.shadow"
2325
apply plugin: "application"
2426
{{#if kotlin}}apply plugin: "kotlin"{{/if}}
2527
apply plugin: "jooby"
@@ -67,3 +69,7 @@ tasks.withType(JavaCompile) {
6769
options.debug = true
6870
}
6971
{{/if}}
72+
73+
shadowJar {
74+
mergeServiceFiles()
75+
}

0 commit comments

Comments
 (0)