forked from USACE-WaterManagement/regi-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
27 lines (23 loc) · 859 Bytes
/
build.gradle
File metadata and controls
27 lines (23 loc) · 859 Bytes
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
plugins {
id "com.palantir.git-version" version "3.0.0"
id "org.sonarqube" version "4.0.0.2929"
}
def versionLabel(gitInfo) {
def branch = gitInfo.branchName // all branches are snapshots, only tags get released
def tag = gitInfo.lastTag
// tag is returned as is. Branch may need cleanup
return branch == null ? tag : "99." + branch.replace("/","-") + "-SNAPSHOT"
}
allprojects {
group = 'mil.army.wmist.regi-headless'
version = versionLabel(versionDetails())
}
tasks.register('logTeamCityBuildStatus') {
doLast {
def message = "##teamcity[buildStatus text='SonarQube Results' description='Available at https://sonarqube.hecdev.net/dashboard?id=mil.army.wmist.regi-headless%3Aregi-headless-parent']"
logger.info(message)
}
}
tasks.named('sonar').configure {
finalizedBy logTeamCityBuildStatus
}