generated from ak-git/SimpleApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (67 loc) · 1.61 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
import com.github.spotbugs.snom.Confidence
plugins {
id 'java'
id 'idea'
id 'jacoco'
alias(libs.plugins.spotbugs)
alias(libs.plugins.ben.manes.versions)
alias(libs.plugins.nebula.lint)
alias(libs.plugins.sonarqube)
alias(libs.plugins.jacocolog)
alias(libs.plugins.jgitver)
}
spotbugs {
reportLevel = Confidence.valueOf('HIGH')
}
tasks.spotbugsMain {
reports.create('html') {
required = true
setStylesheet('fancy-hist.xsl')
}
}
sonar {
properties {
property 'sonar.projectKey', property('sonar.projectKey')
property 'sonar.organization', property('sonar.organization')
property 'sonar.host.url', 'https://sonarcloud.io'
property 'sonar.branch.name', 'master'
property 'sonar.coverage.jacoco.xmlReportPaths', 'build/reports/jacoco/jacocoAggregatedReport/jacocoAggregatedReport.xml'
}
}
allprojects {
group = 'com.ak'
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'org.barfuin.gradle.jacocolog'
jacoco {
toolVersion = '0.8.12'
}
jacocoTestReport {
reports {
xml.required = true
}
}
}
subprojects {
apply plugin: 'java'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
}
compileTestJava {
options.encoding = 'UTF-8'
}
test {
forkEvery = 5
useJUnitPlatform()
testLogging {
events 'failed'
}
maxHeapSize = '1G'
}
}