forked from palantir/gradle-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (77 loc) · 2.23 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
plugins {
id 'com.gradle.plugin-publish' version '0.9.10'
id 'com.jfrog.bintray' version '1.8.0'
id 'com.palantir.git-version' version '0.11.0'
id 'eclipse'
id 'groovy'
id 'idea'
id 'java-gradle-plugin'
id 'maven-publish'
}
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile 'com.google.guava:guava:18.0'
testCompile gradleTestKit()
testCompile "com.netflix.nebula:nebula-test:4.0.0" // for better temp directory junit rule only
}
if (System.env.CIRCLE_TEST_REPORTS) {
test.reports.junitXml.destination = new File(System.env.CIRCLE_TEST_REPORTS, getName())
}
group 'com.palantir.gradle.docker'
version System.env.CIRCLE_TAG ?: gitVersion()
sourceCompatibility = 1.7
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier 'sources'
}
publishing {
publications {
bintray(MavenPublication) {
from components.java
artifact(sourceJar)
artifact(publishPluginJavaDocsJar)
}
}
}
bintray {
user = System.env.BINTRAY_USERNAME
key = System.env.BINTRAY_PASSWORD
publish = true
pkg {
repo = 'releases'
name = 'gradle-docker'
userOrg = 'palantir'
licenses = ['Apache-2.0']
publications = ['bintray']
}
}
bintrayUpload.dependsOn 'generatePomFileForBintrayPublication', 'sourceJar', 'build'
bintrayUpload.onlyIf {
project.version ==~ /[0-9]+(\.[0-9]+)+((-(beta|rc)[0-9]{1,2})(\.[0-9])?)?/
}
pluginBundle {
website = 'https://github.com/palantir/gradle-docker'
vcsUrl = 'https://github.com/palantir/gradle-docker'
description = 'Gradle Docker is a simple docker orchestrator for executing docker build and push from within Gradle.'
tags = ['docker']
plugins {
dockerPlugin {
id = 'com.palantir.docker'
displayName = 'Palantir Gradle Docker'
}
dockerComposePlugin {
id = 'com.palantir.docker-compose'
displayName = 'Palantir Gradle Docker-Compose'
}
dockerRunPlugin {
id = 'com.palantir.docker-run'
displayName = 'Palantir Gradle Docker-Run'
}
}
}
publishPlugins.onlyIf {
project.version ==~ /\d+\.\d+\.\d+/
}