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 {
118118 testImplementation group : ' junit' , name : ' junit' , version : ' 4.13.2'
119119}
120120
121- task fatjar (type : Jar ) {
121+ task fatJar (type : Jar ) {
122122 archiveBaseName = ' codeanalyzer'
123123 archiveFileName = ' codeanalyzer.jar'
124124 duplicatesStrategy = DuplicatesStrategy . EXCLUDE
125125 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+ )
129131 }
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'
131138 with jar
132139}
133140
You can’t perform that action at this time.
0 commit comments