File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,6 @@ plugins {
44 id(" maven-publish.conventions" )
55}
66
7- repositories {
8- mavenCentral()
9- }
10-
117group = projectGroupId
128description = projectArtifactId
139version = projectVersion
@@ -70,6 +66,27 @@ task("fatJar", type = Jar::class) {
7066 with (tasks[" jar" ] as CopySpec )
7167}
7268
69+ task(" nullpath" , type = Jar ::class ) {
70+ group = " build"
71+ description = " Creates a single jar file including NullPath and all dependencies"
72+ manifest {
73+ attributes[" Main-Class" ] = " pascal.taie.analysis.bugfinder.pathsensnullpointer.NullPointerMain"
74+ }
75+ archiveBaseName.set(" nullpath" )
76+ from(
77+ configurations.runtimeClasspath.get().map {
78+ if (it.isDirectory) it else zipTree(it)
79+ }
80+ )
81+ from(" COPYING" , " COPYING.LESSER" )
82+ destinationDirectory.set(rootProject.buildDir)
83+ duplicatesStrategy = DuplicatesStrategy .EXCLUDE
84+ with (tasks[" jar" ] as CopySpec )
85+ exclude(" META-INF/*.SF" )
86+ exclude(" META-INF/*.DSA" )
87+ exclude(" META-INF/*.RSA" )
88+ }
89+
7390tasks.jar {
7491 from(" COPYING" , " COPYING.LESSER" )
7592 destinationDirectory.set(rootProject.buildDir)
You can’t perform that action at this time.
0 commit comments