-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
51 lines (38 loc) · 1.35 KB
/
build.gradle
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
apply plugin: "java"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
// jpf-core
implementation files(jpf.Jar.getFullPath())
// JUnit 4
testImplementation 'junit:junit:4.12'
// bcel
implementation 'org.apache.bcel:bcel:6.5.0'
// jars used in the examples
implementation fileTree(dir: 'lib/example', include: ['*/*.jar'])
}
jar {
archiveBaseName = 'jpf-nhandler'
exclude('example/**')
destinationDirectory.set(file("${buildDir}"))
}
test {
testLogging {
events "passed", "skipped", "failed"
}
jvmArgs += ['--add-exports', 'java.base/jdk.internal.misc=ALL-UNNAMED', '--add-opens', 'java.base/jdk.internal.misc=ALL-UNNAMED', '--add-opens', 'java.base/java.lang=ALL-UNNAMED', '--add-opens', 'java.base/java.util=ALL-UNNAMED']
afterSuite { testDescriptor, result ->
if (!testDescriptor.parent) {
println "Test Execution: ${result.resultType}"
def summaryFields = ["${result.testCount} tests",
"${result.successfulTestCount} passed",
"${result.failedTestCount} failed",
"${result.skippedTestCount} skipped"]
println ("Summary: " + summaryFields.join(", "))
}
}
}
defaultTasks "jar"