-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.gradle
44 lines (37 loc) · 1.11 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
plugins {
id 'com.github.ben-manes.versions' version '0.47.0'
}
task archiveDeployment(type: Tar) {
destinationDirectory = file('.')
archiveFileName = 'deployment.tar'
into 'deployment'
from 'deployment'
}
// Set publishing version property globally for this project
configure(subprojects) {
setProperty('publishing.version', {
if (findProperty("version.isRelease").toBoolean()) {
return "${findProperty("version.number")}"
} else {
def hash = 'git rev-parse --short HEAD'.execute().text.trim()
return "${findProperty("version.number")}-SNAPSHOT-$hash"
}
}())
}
subprojects {
apply plugin: 'com.github.ben-manes.versions'
repositories {
// Search the local filesystem before attempting remote repositories
flatDir { dirs "$rootDir/third-party" }
mavenCentral()
}
group = 'gov.nasa.jpl.aerie'
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:deprecation' << '-Xlint:unchecked'
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
options.addStringOption('Xdoclint:none', '-quiet')
}
}