-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
63 lines (53 loc) · 1.33 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
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/6.8/samples
*/
plugins {
java
checkstyle
jacoco
id("org.sonarqube") version "3.4.0.2513"
id("io.qameta.allure") version "2.10.0"
}
object Versions {
const val JUNIT = "5.8.2"
}
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-engine:${Versions.JUNIT}")
testImplementation("org.junit.jupiter:junit-jupiter-api:${Versions.JUNIT}")
testImplementation("org.junit.jupiter:junit-jupiter-params:${Versions.JUNIT}")
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
xml.outputLocation
.set(File("$buildDir/reports/jacoco/test/jacoco.xml"))
}
}
tasks.test {
useJUnitPlatform()
}
sonarqube {
properties {
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.projectKey", "unrealwork_coding-problems")
property("sonar.organization", "unrealwork-github")
property("sonar.coverage.jacoco.xmlReportPaths", "$buildDir/reports/jacoco/test/jacoco.xml")
}
}
allure {
version.set("2.10.0")
adapter {
frameworks {
junit5
}
}
}
java {
version = 11
}