forked from palantir/giraffe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
36 lines (27 loc) · 896 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
plugins {
id "com.palantir.git-version" version "0.11.0"
id "com.palantir.jacoco-coverage" version "0.4.0" apply false
id "com.github.hierynomus.license" version "0.13.1" apply false
id "com.jfrog.bintray" version "1.8.4" apply false
}
apply from: 'gradle/versions.gradle'
version gitVersion()
group = 'com.palantir.giraffe'
ext.localPublishDir = "${buildDir}/m2"
task distZip(type: Zip) {
dependsOn (['core', 'ssh', 'fs-base', 'test-util'].collect { ":giraffe-${it}:publishJavaPublicationToLocalRepository" })
from (localPublishDir) {
exclude '**/maven-metadata.xml*'
}
baseName = project.name
appendix = 'release'
version = project.version
destinationDir = file("${buildDir}/distributions")
doFirst {
file(destinationDir).mkdirs()
}
}
task publish(dependsOn: distZip)
task clean(type: Delete) {
delete buildDir
}