File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -127,19 +127,16 @@ task fatjar(type: Jar) {
127
127
' Implementation-Version' : archiveVersion,
128
128
' Main-Class' : ' com.ibm.northstar.CodeAnalyzer'
129
129
}
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
- }
130
+
131
+ from(configurations. runtimeClasspath. collect { it. isDirectory() ? it : zipTree(it) }) {
132
+ exclude ' META-INF/*.RSA' , ' META-INF/*.SF' , ' META-INF/*.DSA'
133
+ }
134
+ // Use zipTree to process JAR files
135
+ eachFile { details ->
136
+ if (details. file. isFile() && details. name. endsWith(' .jar' )) {
137
+ zipTree(details. file)
138
+ } else {
139
+ details. file
143
140
}
144
141
}
145
142
with jar
You can’t perform that action at this time.
0 commit comments