File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -118,16 +118,23 @@ dependencies {
118
118
testImplementation group : ' junit' , name : ' junit' , version : ' 4.13.2'
119
119
}
120
120
121
- task fatjar (type : Jar ) {
121
+ task fatJar (type : Jar ) {
122
122
archiveBaseName = ' codeanalyzer'
123
123
archiveFileName = ' codeanalyzer.jar'
124
124
duplicatesStrategy = DuplicatesStrategy . EXCLUDE
125
125
manifest {
126
- attributes ' Implementation-Title' : ' Northstar Codeanalyzer' ,
127
- ' Implementation-Version' : archiveVersion,
128
- ' Main-Class' : ' com.ibm.northstar.CodeAnalyzer'
126
+ attributes(
127
+ ' Implementation-Title' : ' Northstar Codeanalyzer' ,
128
+ ' Implementation-Version' : project. version,
129
+ ' Main-Class' : ' com.ibm.northstar.CodeAnalyzer'
130
+ )
129
131
}
130
- from { configurations. compileClasspath. collect { it. isDirectory() ? it : zipTree(it) } }
132
+
133
+ // Collect and include runtime classpath dependencies, excluding signature files
134
+ from {
135
+ configurations. runtimeClasspath. collect { it. isDirectory() ? it : zipTree(it) }
136
+ }
137
+ exclude ' META-INF/*.RSA' , ' META-INF/*.SF' , ' META-INF/*.DSA'
131
138
with jar
132
139
}
133
140
You can’t perform that action at this time.
0 commit comments