This repository has been archived by the owner on May 9, 2023. It is now read-only.
forked from pascal-lab/Tai-e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (54 loc) · 1.78 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
50
51
52
53
54
55
56
57
58
59
60
plugins {
id("application")
id("tai-e.conventions")
}
dependencies {
// Process options
implementation("info.picocli:picocli:4.7.1")
// Logger
implementation("org.apache.logging.log4j:log4j-api:2.19.0")
implementation("org.apache.logging.log4j:log4j-core:2.19.0")
// Process YAML configuration files
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2")
// Use Soot as frontend
implementation(files("lib/sootclasses-modified.jar"))
implementation("org.soot-oss:soot:4.4.1")
// Eliminate SLF4J warning
implementation("org.slf4j:slf4j-nop:2.0.6")
testImplementation("junit:junit:4.13.2")
}
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)
}
tasks.test {
// Increases the maximum heap memory of JUnit test process. The default is 512M.
// (see org.gradle.process.internal.worker.DefaultWorkerProcessBuilder.build)
maxHeapSize = "2G"
}
// Automatically agree the Gradle ToS when running gradle with '--scan' option
extensions.findByName("buildScan")?.withGroovyBuilder {
setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service")
setProperty("termsOfServiceAgree", "yes")
}