-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (41 loc) · 945 Bytes
/
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
plugins {
id "java"
id "org.sonarqube" version "3.5.0.2730"
id "jacoco"
}
group = 'org.tcaud'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation platform("org.junit:junit-bom:5.9.1")
testImplementation "org.junit.jupiter:junit-jupiter"
}
test {
useJUnitPlatform()
}
sonar {
properties {
property "sonar.projectKey", "ThomasCaud_numeric-puzzle-solver"
property "sonar.organization", "thomascaud-github"
property "sonar.host.url", "https://sonarcloud.io"
}
}
test {
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled true
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
"org/tcaud/Main.class",
"org/tcaud/display/**"
])
}))
}
}