File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,21 @@ task fatjar(type: Jar) {
127127 ' Implementation-Version' : archiveVersion,
128128 ' Main-Class' : ' com.ibm.northstar.CodeAnalyzer'
129129 }
130- from { configurations. compileClasspath. collect { it. isDirectory() ? it : zipTree(it) } }
130+ // Collect and include files from compile classpath, excluding signature-related files
131+ from (configurations. runtimeClasspath) {
132+ exclude ' META-INF/*.SF'
133+ exclude ' META-INF/*.DSA'
134+ exclude ' META-INF/*.RSA'
135+ exclude ' META-INF/MANIFEST.MF'
136+ // Use zipTree to process JAR files
137+ eachFile { details ->
138+ if (details. file. isFile() && details. name. endsWith(' .jar' )) {
139+ zipTree(details. file)
140+ } else {
141+ details. file
142+ }
143+ }
144+ }
131145 with jar
132146}
133147
You can’t perform that action at this time.
0 commit comments