From 802c5103392abd2737375957f0136f75e8781a05 Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Sat, 13 Dec 2014 18:00:26 -0800 Subject: [PATCH] Add bintray plugin for uploading archives Fixes #21 --- build.gradle | 27 +++++++++++++++++++++++++++ gradle.properties | 2 ++ 2 files changed, 29 insertions(+) diff --git a/build.gradle b/build.gradle index d8f64b1..1caa3d8 100644 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,7 @@ //////////////////////////////////////////////////////////////////////////////// plugins { id "io.ratpack.ratpack-groovy" version "0.9.10" + id 'com.jfrog.bintray' version '1.0' } apply plugin: 'groovy' @@ -53,4 +54,30 @@ test { } } +//////////////////////////////////////////////////////////////////////////////// +// RELEASING +//////////////////////////////////////////////////////////////////////////////// +bintray { + user = project.bintrayUser + key = project.bintrayKey + publish = true + dryRun = false + configurations = ['archives'] + + pkg { + userOrg = 'rtyler' + repo = 'maven' + name = 'offtopic' + labels = ['kafka', 'offtopic', 'ratpack', 'groovy'] + + version { + name = project.version + vcsTag = "v${project.version}" + desc = project.description + } + } +} +bintrayUpload.dependsOn assemble + +//////////////////////////////////////////////////////////////////////////////// // vim: ft=groovy diff --git a/gradle.properties b/gradle.properties index 1a644c7..760775d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,3 @@ org.gradle.daemon=true +bintrayUser= +bintrayKey=