-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
81 lines (68 loc) · 1.89 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
71
72
73
74
75
76
77
78
79
80
81
plugins {
id 'java'
id "com.github.spotbugs" version "5.0.14"
id "com.diffplug.spotless" version "6.19.0"
id 'pl.allegro.tech.build.axion-release' version '1.15.3'
id 'org.javamodularity.moduleplugin' version '1.8.12' apply false
id 'jacoco'
}
scmVersion {
tag {
prefix = ''
}
}
group 'it.jnrpe'
apply plugin: 'distribution'
project.version=scmVersion.version
subprojects {
apply plugin: 'java'
apply plugin: "org.javamodularity.moduleplugin"
apply plugin: 'com.github.spotbugs'
apply plugin: 'com.diffplug.spotless'
apply plugin: 'jacoco'
apply from: "$rootProject.projectDir/gradle/spotless.gradle"
apply from: "$rootProject.projectDir/gradle/spotbugs.gradle"
apply from: "$rootProject.projectDir/gradle/publishing.gradle"
repositories {
mavenCentral()
}
dependencies {
testImplementation(platform('org.junit:junit-bom:5.9.3'))
testImplementation('org.junit.jupiter:junit-jupiter')
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
java {
modularity.inferModulePath = true
withJavadocJar()
withSourcesJar()
}
jar {
manifest {
attributes 'Implementation-Version': archiveVersion
attributes 'Implementation-Title': 'JNRPE'
}
}
test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
events "passed", "skipped", "failed"
}
finalizedBy jacocoTestReport
}
jacocoTestReport {
reports {
xml.required = true
csv.required = false
html.outputLocation = layout.buildDirectory.dir('coverage')
}
}
tasks {
javadoc {
failOnError = false
}
compileJava {
options.javaModuleVersion = provider { scmVersion.version }
}
}
}