-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (45 loc) · 1.12 KB
/
build.gradle
File metadata and controls
57 lines (45 loc) · 1.12 KB
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
plugins {
id 'java'
id "org.sonarqube" version "3.0"
id 'jacoco'
id 'application'
}
group 'tkcodes'
version '2.0'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-api:2.20.0'
implementation 'org.apache.logging.log4j:log4j-core:2.20.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.6.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-params:5.6.3'
}
application {
mainClassName = 'UnoApp'
}
test {
useJUnitPlatform()
jacoco {
enabled = System.getenv("CI") == "true"
}
}
jacocoTestReport {
reports {
xml.enabled true
xml.destination file("${buildDir}/jacocoXml")
csv.enabled false
html.enabled false
}
}
sonarqube {
properties {
property "sonar.projectKey", "tk-codes_uno"
property "sonar.organization", "tk-codes-github"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.exclusions", "**/ui/**/*"
}
}
project.tasks["sonarqube"].dependsOn jacocoTestReport