-
Notifications
You must be signed in to change notification settings - Fork 47
/
build.gradle.kts
69 lines (58 loc) · 1.4 KB
/
build.gradle.kts
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
plugins {
java
`java-library`
`maven-publish`
jacoco
id("com.github.spotbugs") version "5.0.14"
}
repositories {
mavenCentral()
}
dependencies {
testImplementation("io.cucumber:cucumber-java:7.12.0")
testImplementation("io.cucumber:cucumber-junit-platform-engine:7.12.0") {
exclude("org.junit.vintage:vintage-engine")
}
testImplementation("org.junit.platform:junit-platform-suite-engine:1.9.3")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.3")
}
group = "io.mikael"
version = "2.0.10-SNAPSHOT"
description = "urlbuilder"
java.sourceCompatibility = JavaVersion.VERSION_1_8
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
tasks.jacocoTestReport {
reports {
csv.required.set(true)
}
}
tasks.spotbugsMain {
excludeFilter.set(file("spotbugs-exclude.xml"))
reports.create("html") {
required.set(true)
outputLocation.set(file("$buildDir/reports/spotbugs.html"))
setStylesheet("plain.xsl")
}
}
tasks.spotbugsTest {
enabled = false
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}
tasks.test {
useJUnitPlatform()
}