File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+ import com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer
23
34plugins {
45 application
56 id(" com.diffplug.gradle.spotless" )
67 `maven- publish`
78 id(" com.adarshr.test-logger" ) version " 2.1.0"
89 id(" org.jetbrains.kotlin.jvm" )
9- id(" com.github.johnrengelman.shadow" ) version " 6 .1.0 "
10+ id(" com.github.johnrengelman.shadow" ) version " 7 .1.2 "
1011 kotlin(" plugin.serialization" )
1112}
1213
@@ -84,6 +85,16 @@ tasks.named<ShadowJar>("shadowJar") {
8485 manifest {
8586 attributes[" Main-Class" ] = " org.modelix.model.server.Main"
8687 }
88+
89+ mergeServiceFiles()
90+ append(" META-INF/spring.schemas" )
91+ append(" META-INF/spring.handlers" )
92+ append(" META-INF/spring.tooling" )
93+
94+ transform(PropertiesFileTransformer ::class .java) {
95+ paths = listOf (" META-INF/spring.factories" )
96+ mergeStrategy = " append"
97+ }
8798}
8899
89100val fatJarFile = file(" $buildDir /libs/model-server-latest-fatJar.jar" )
You can’t perform that action at this time.
0 commit comments