-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (54 loc) · 1.72 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
plugins {
`java-library`
id("com.github.johnrengelman.shadow") version "7.1.2"
id("org.sonarqube") version "3.4.0.2513"
id("io.freefair.lombok") version "6.5.1"
checkstyle
jacoco
}
allprojects {
group = "org.kryonite"
version = "0.1.0"
apply(plugin = "java-library")
apply(plugin = "com.github.johnrengelman.shadow")
apply(plugin = "org.sonarqube")
apply(plugin = "io.freefair.lombok")
apply(plugin = "checkstyle")
apply(plugin = "jacoco")
repositories {
mavenCentral()
}
dependencies {
val junitVersion = "5.9.0"
val mockitoVersion = "4.7.0"
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("org.mockito:mockito-junit-jupiter:$mockitoVersion")
testImplementation("org.mockito:mockito-inline:$mockitoVersion")
}
tasks.test {
finalizedBy("jacocoTestReport")
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withJavadocJar()
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
}
}
checkstyle {
toolVersion = "9.2.1"
config = project.resources.text.fromUri("https://kryonite.org/checkstyle.xml")
}
sonarqube {
properties {
property("sonar.projectKey", "kryoniteorg_kryo-player-sync")
property("sonar.organization", "kryoniteorg")
property("sonar.host.url", "https://sonarcloud.io")
}
}
}