-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
82 lines (69 loc) · 1.47 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
82
plugins {
id 'idea'
id 'java'
id 'jacoco'
id 'java-library'
id 'com.github.spotbugs' version '4.7.10'
id "com.diffplug.spotless" version "6.0.0"
id 'net.researchgate.release' version '2.8.1'
id "org.sonarqube" version "3.3"
}
group = 'cz.datadriven.utils'
apply from: "${rootProject.projectDir}/gradle/publishing.gradle"
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
def junitJupiterVersion = '5.8.1'
dependencies {
api "com.typesafe:config:1.4.2"
implementation 'net.bytebuddy:byte-buddy:1.12.14'
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}")
}
spotless {
java {
licenseHeaderFile 'HEADER'
googleJavaFormat("1.7")
}
}
spotbugsMain {
effort = 'max'
reportLevel = 'low'
reports {
xml {
required = false
}
html {
required = true
}
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
release {
tagTemplate = 'v$version'
}
test {
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml {
required = true
}
}
}
sonarqube {
properties {
property 'sonar.host.url', 'https://sonarcloud.io'
property 'sonar.organization', 'datadriven'
property "sonar.projectKey", "datadrivencz_config-view"
}
}