-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (40 loc) · 1.01 KB
/
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
import static org.apache.tools.ant.taskdefs.condition.Os.FAMILY_MAC
import static org.apache.tools.ant.taskdefs.condition.Os.FAMILY_WINDOWS
import static org.apache.tools.ant.taskdefs.condition.Os.isFamily
plugins {
id 'jacoco'
id 'java'
id 'org.sonarqube' version '2.8'
id 'de.undercouch.download' version '3.4.0'
}
group 'org.odisee'
version '2.6'
jacoco {
toolVersion = '0.8.5'
reportsDir = file("${buildDir}/coverage-reports")
//html.destination file("${buildDir}/coverage-reports-html")
}
jacocoTestReport {
reports {
xml.enabled true
}
}
sonarqube {
properties {
property 'sonar.sourceEncoding', 'UTF-8'
}
}
tasks.'sonarqube'.group('verification')
task osInfo {
group 'Odisee'
description 'Show information about the operating system'
//onlyIf { isFamily(FAMILY_MAC) }
doLast {
if (isFamily(FAMILY_WINDOWS)) {
println "*** Windows"
}
if (isFamily(FAMILY_MAC)) {
println "*** macOS"
}
}
}