forked from leitstand/leitstand-jobs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (37 loc) · 888 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
plugins {
// Activate sonarqube plugin to run static code analysis
id "org.sonarqube" version "3.0"
}
allprojects {
group = 'io.leitstand.jobs'
// Activate jacoco for all modules to measure unit test code coverage
apply plugin: 'jacoco'
apply plugin: 'java'
apply plugin: 'maven-publish'
repositories {
jcenter()
mavenLocal()
}
jacocoTestReport {
reports {
xml.enabled true
}
}
}
subprojects {
task version(type: Exec) {
def version = findProperty('versions.leitstand-jobs')
println 'Project version ('+project.name+'): ' + version
project.setVersion(version)
}
publishing {
repositories {
mavenLocal()
}
}
sonarqube {
properties {
property 'sonar.sources', 'src/main/java'
}
}
}