-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (59 loc) · 1.83 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
64
65
66
67
68
69
70
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'
id "com.github.johnrengelman.shadow" version "8.1.1" apply false
id "org.openjfx.javafxplugin" version "0.0.14" apply false
}
version = "1.0.0-SNAPSHOT"
subprojects{
project.apply plugin: "java"
project.apply plugin: "groovy"
project.apply plugin: "publishing"
//project.apply plugin: "com.github.spotbugs"
group = "com.github.AndreasTu.jctrace"
version = rootProject.version
tasks.withType(JavaCompile).configureEach {
//options.release.set(17)
options.encoding = "UTF-8"
}
tasks.withType(Jar).configureEach {
it.setPreserveFileTimestamps(false)
it.setReproducibleFileOrder(true)
}
tasks.named("jar", Jar).configure {
manifest {
attributes(
"Implementation-Title": project.name,
"Implementation-Version": project.version,
"Implementation-Vendor": "Andreas Turban",
)
}
}
//Common Dependencies Configuration
project.dependencies {
compileOnly libs.googleFindbugsAnno
compileOnly libs.spotBugsAnno
testImplementation libs.groovy
testImplementation(libs.spockCore) {
exclude module: "groovy"
}
testImplementation libs.junit5Api
testImplementation libs.assertJ
testImplementation libs.guava
testRuntimeOnly libs.junitPlatform
testRuntimeOnly libs.junit5Impl
}
/*
tasks.named("spotbugsTest").configure {
//We do not execute spotbugs on test code
enabled = false
}
*/
//Common test configuration
tasks.withType(Test).configureEach{
useJUnitPlatform()
jvmArgs '-Xmx1124m'
}
}