Merge pull request #27 from lookout/auto-deployment
Add support for automatically publishing to Bintray
This commit is contained in:
commit
cb3465f715
|
@ -1,4 +1,11 @@
|
||||||
language: java
|
language: java
|
||||||
|
# Only the oraclejdk7 build on a tag will actually release
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk7
|
- oraclejdk7
|
||||||
- oraclejdk8
|
- oraclejdk8
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
secure: MzcJafov6+fztyym0hZFTxjirTAgVFqFRO4pSSoDUZV71jHBYRKLmQxiaYpqdl9d7Q7Jz7UfNZRSisNwZQdeZjs0B9yJwy9m1mDlJaUXIWN/xzW04qPnZ5zxh1yJHK+UHIw5G2qRZSE42m9G3TSRBlUz6OMk+tr2UYErfnKzcsc=
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
"./gradlew bintrayUpload -PbintrayUser=lookouteng -PbintrayKey=${BINTRAY_KEY}"
|
||||||
|
|
15
build.gradle
15
build.gradle
|
@ -7,11 +7,9 @@ apply plugin: 'application'
|
||||||
|
|
||||||
group = "com.github.lookout"
|
group = "com.github.lookout"
|
||||||
description = "A utility for monitoring the delay of Kafka consumers"
|
description = "A utility for monitoring the delay of Kafka consumers"
|
||||||
version = '0.2.0'
|
version = '0.2.1'
|
||||||
mainClassName = 'com.github.lookout.verspaetung.Main'
|
mainClassName = 'com.github.lookout.verspaetung.Main'
|
||||||
defaultTasks 'clean', 'check'
|
defaultTasks 'clean', 'check', 'assemble'
|
||||||
sourceCompatibility = '1.7'
|
|
||||||
targetCompatibility = '1.7'
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -39,7 +37,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'org.codehaus.groovy:groovy-all:2.4.0+'
|
compile 'org.codehaus.groovy:groovy-all:2.4.3+'
|
||||||
|
|
||||||
[
|
[
|
||||||
'curator-framework',
|
'curator-framework',
|
||||||
|
@ -94,7 +92,12 @@ bintray {
|
||||||
user = project.bintrayUser
|
user = project.bintrayUser
|
||||||
key = project.bintrayKey
|
key = project.bintrayKey
|
||||||
publish = true
|
publish = true
|
||||||
dryRun = false
|
/*
|
||||||
|
* Only only publish when we're tagging a release and if we've executed on
|
||||||
|
* the JDK7 build. This is to prevent multiple attempts by the build matrix
|
||||||
|
* to publish the artifacts
|
||||||
|
*/
|
||||||
|
dryRun = !((System.env.TRAVIS_TAG as boolean) && (System.env.TRAVIS_JDK_VERSION == 'oraclejdk7'))
|
||||||
configurations = ['archives']
|
configurations = ['archives']
|
||||||
|
|
||||||
pkg {
|
pkg {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
bintrayUser=
|
bintrayUser=
|
||||||
bintrayKey=
|
bintrayKey=
|
||||||
|
sourceCompatibility=1.7
|
||||||
|
targetCompatibility=1.7
|
||||||
|
|
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip
|
||||||
|
|
Loading…
Reference in New Issue