-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (52 loc) · 1.58 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
53
54
55
56
57
58
59
60
61
62
63
plugins {
id 'base'
id 'jacoco'
id 'com.github.spotbugs' version '5.0.14' apply false
id 'com.github.ben-manes.versions' version '0.47.0'
}
version = "1.0.3-SNAPSHOT"
subprojects {
project.apply plugin: "java"
project.apply plugin: "groovy"
project.apply plugin: "publishing"
project.apply plugin: "com.github.spotbugs"
group = "com.github.AndreasTu.jEventTrace"
version = rootProject.version
tasks.withType(JavaCompile).configureEach {
options.release.set(17)
options.encoding = "UTF-8"
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
tasks.named("jar", Jar).configure {
it.setPreserveFileTimestamps(false)
it.setReproducibleFileOrder(true)
manifest {
attributes(
"Implementation-Title": project.name,
"Implementation-Version": project.version,
"Implementation-Vendor": "Andreas Turban",
)
}
}
tasks.named("processResources", ProcessResources).configure {
from(rootProject.file("LICENSE")) {
into("META-INF")
}
}
project.dependencies {
compileOnly libs.googleFindbugsAnno
compileOnly libs.spotBugsAnno
testImplementation libs.groovy
testImplementation(libs.spockCore) {
exclude module: "groovy"
}
testRuntimeOnly libs.junitPlatform
}
tasks.named("spotbugsTest").configure {
//We do not execute spotbugs on test code
enabled = false
}
}
apply from: "gradle/jacoco.gradle"