forked from pascal-lab/Tai-e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (44 loc) · 1.34 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
plugins {
id("application")
id("tai-e.conventions")
}
dependencies {
// Process options
implementation("info.picocli:picocli:4.6.1")
// Logger
implementation("org.apache.logging.log4j:log4j-api:2.16.0")
implementation("org.apache.logging.log4j:log4j-core:2.16.0")
// Process YAML configuration files
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.2")
// Use Soot as frontend
implementation(files("lib/sootclasses-modified.jar"))
implementation("org.soot-oss:soot:4.3.0-20211223.212205-256")
// Eliminate SLF4J warning
implementation("org.slf4j:slf4j-nop:1.7.5")
testImplementation("junit:junit:4.13")
}
application {
mainClass.set("pascal.taie.Main")
}
task("fatJar", type = Jar::class) {
group = "build"
description = "Creates a single jar file including Tai-e and all dependencies"
manifest {
attributes["Main-Class"] = "pascal.taie.Main"
}
archiveBaseName.set("tai-e-all")
from(
configurations.compileClasspath.get().map {
if (it.isDirectory) it else zipTree(it)
}
)
from("COPYING", "COPYING.LESSER")
doLast {
copy {
from(archiveFile)
into(rootProject.buildDir)
}
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
with(tasks["jar"] as CopySpec)
}