Skip to content

Commit 3619337

Browse files
build script for nullpath
1 parent 9e935c7 commit 3619337

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

build.gradle.kts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ plugins {
44
id("maven-publish.conventions")
55
}
66

7-
repositories {
8-
mavenCentral()
9-
}
10-
117
group = projectGroupId
128
description = projectArtifactId
139
version = 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+
7390
tasks.jar {
7491
from("COPYING", "COPYING.LESSER")
7592
destinationDirectory.set(rootProject.buildDir)

0 commit comments

Comments
 (0)