-
Notifications
You must be signed in to change notification settings - Fork 61
/
build.gradle
52 lines (44 loc) · 1.06 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
52
plugins {
id 'java'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.4'
}
version = '1.0.0'
repositories {
mavenCentral()
// You can include other repositories if needed
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.3'
testImplementation 'org.mockito:mockito-core:5.9.0'
}
allprojects {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
}
}
jacocoTestReport {
reports {
html.required.set(true)
xml.required.set(true)
csv.required.set(false)
}
}
tasks.jar {
manifest {
attributes 'Main-Class': 'diff.rednaga.AXMLPrinter'
}
processResources {
inputs.property('version', version)
expand('version': version)
}
}
test {
useJUnitPlatform()
jvmArgs(
'--add-opens', 'java.base/java.lang=ALL-UNNAMED',
'--add-opens', 'java.base/java.io=ALL-UNNAMED',
'--add-opens', 'java.base/java.util=ALL-UNNAMED'
)
}