Add support for automatically publishing to Bintray when a build succeeds
This commit is contained in:
parent
81d15d53ec
commit
685f0353f2
|
@ -2,3 +2,9 @@ language: java
|
|||
jdk:
|
||||
- oraclejdk7
|
||||
- oraclejdk8
|
||||
env:
|
||||
global:
|
||||
secure: MzcJafov6+fztyym0hZFTxjirTAgVFqFRO4pSSoDUZV71jHBYRKLmQxiaYpqdl9d7Q7Jz7UfNZRSisNwZQdeZjs0B9yJwy9m1mDlJaUXIWN/xzW04qPnZ5zxh1yJHK+UHIw5G2qRZSE42m9G3TSRBlUz6OMk+tr2UYErfnKzcsc=
|
||||
|
||||
after_success:
|
||||
"./gradlew bintrayUpload -PbintrayUser=lookouteng -PbintrayKey=${BINTRAY_KEY}"
|
||||
|
|
16
build.gradle
16
build.gradle
|
@ -7,11 +7,19 @@ apply plugin: 'application'
|
|||
|
||||
group = "com.github.lookout"
|
||||
description = "A utility for monitoring the delay of Kafka consumers"
|
||||
version = '0.2.0'
|
||||
version = '0.2'
|
||||
mainClassName = 'com.github.lookout.verspaetung.Main'
|
||||
defaultTasks 'clean', 'check'
|
||||
sourceCompatibility = '1.7'
|
||||
targetCompatibility = '1.7'
|
||||
|
||||
|
||||
/* Little bit of version shenanigans to get a MINOR number supplied by Travis */
|
||||
|
||||
if (System.env.TRAVIS_BUILD_NUMBER) {
|
||||
version = "${version}.${System.env.TRAVIS_BUILD_NUMBER}"
|
||||
}
|
||||
else {
|
||||
version = "${version}.0-SNAPSHOT"
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -39,7 +47,7 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compile 'org.codehaus.groovy:groovy-all:2.4.0+'
|
||||
compile 'org.codehaus.groovy:groovy-all:2.4.3+'
|
||||
|
||||
[
|
||||
'curator-framework',
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
org.gradle.daemon=true
|
||||
bintrayUser=
|
||||
bintrayKey=
|
||||
sourceCompatibility=1.7
|
||||
targetCompatibility=1.7
|
||||
|
|
Loading…
Reference in New Issue