forked from HydrologicEngineeringCenter/cwms-data-api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (38 loc) · 1.02 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
46
plugins {
id "com.palantir.git-version" version "3.1.0"
}
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"
}
subprojects {
apply plugin: 'java'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
apply plugin: 'project-report'
version = versionLabel(versionDetails())
group = "mil.army.usace.hec"
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
test {
finalizedBy jacocoTestReport
}
checkstyle {
toolVersion '9.0.1'
}
jacoco {
toolVersion = "0.8.7"
}
jacocoTestReport {
dependsOn test
reports {
csv.required = true
xml.required = true
html.outputLocation = layout.buildDirectory.dir('jacoco')
}
}
}