Add support for automatically publishing to Bintray when a build succeeds

This commit is contained in:
R. Tyler Croy 2015-07-04 13:40:25 -07:00
parent 81d15d53ec
commit 685f0353f2
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
3 changed files with 20 additions and 4 deletions

View File

@ -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}"

View File

@ -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',

View File

@ -1,3 +1,5 @@
org.gradle.daemon=true
bintrayUser=
bintrayKey=
sourceCompatibility=1.7
targetCompatibility=1.7