From d683c17cfe1c058b69d5b46a31ba8b86b0481f77 Mon Sep 17 00:00:00 2001 From: Lewis John McGibbney Date: Tue, 15 Sep 2015 16:58:57 -0700 Subject: [PATCH] GORA-441 Update build.gradle within gora-gradle-plugin to reference canonical Apache links --- CHANGES.txt | 2 ++ gora-gradle-plugin/README.md | 23 +++++++++++++++++++++-- gora-gradle-plugin/build.gradle | 10 +++++----- 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 64694743b..98367feea 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,8 @@ Current Development +* GORA-441 Update build.gradle within gora-gradle-plugin to reference canonical Apache links (lewismc) + * GORA-438 Erroneous Exception Message at IOUtils.java (Furkan KAMACI via lewismc) Apache Gora 0.6.1 Release - 05/09/2015 (dd/mm/yyyy) diff --git a/gora-gradle-plugin/README.md b/gora-gradle-plugin/README.md index fdf14d389..4a48d497f 100644 --- a/gora-gradle-plugin/README.md +++ b/gora-gradle-plugin/README.md @@ -15,14 +15,14 @@ buildscript { jcenter() } dependencies { - classpath "org.apache.gora.gradle:gora-gradle-plugin:0.6" + classpath "org.apache.gora.gradle:gora-gradle-plugin:0.6.1" } } apply plugin: "org.apache.gora" dependencies { - compile "org.apache.gora:gora-core:0.4" + compile "org.apache.gora:gora-core:0.6.1" } ``` @@ -44,3 +44,22 @@ If you want to build this plugin from a Git checkout, please use Gradle Wrapper ./gradlew clean build publishToMavenLocal ``` +## Publishing to Bintray + +As per the [Gora Release HOWTO](https://cwiki.apache.org/confluence/display/GORA/Apache+Gora+Release+Procedure+HOW_TO) we release the gora-gradle-plugin post release of the Gora release artifacts including the Maven artifacts. + +In order to publish the plugin you must first register with [bintray](https://bintray.com/) and add your username and API key to your local System properties e.g. ~/.bashrc +``` +export BINTRAY_USER=abc +export BINTRAY_KEY=xyz +``` +Then run the following : + +cd $GORA_HOME/gora-gradle-plugin; ./gradlew clean bintrayUpload + +This does the following + + * Relaunch compile / assemble tasks + * Deploy artifacts to your local Maven Repository (~/.m2/repository/) + * Uploads those artifacts to Bintray (for publication on Maven Central repository) + diff --git a/gora-gradle-plugin/build.gradle b/gora-gradle-plugin/build.gradle index 295ff5a20..187ac0139 100644 --- a/gora-gradle-plugin/build.gradle +++ b/gora-gradle-plugin/build.gradle @@ -68,8 +68,8 @@ publishing { } bintray { - user = project.hasProperty('bintrayUser') ? project.getProperty('bintrayUser') : null - key = project.hasProperty('bintrayKey') ? project.getProperty('bintrayKey') : null + user = System.getenv('BINTRAY_USER') + key = System.getenv('BINTRAY_KEY') publications = ['mavenJava'] publish = true @@ -79,9 +79,9 @@ bintray { name = 'gradle-gora-plugin' licenses = ['Apache-2.0'] desc = 'Gradle plugin for generating Gora beans for Avro schemas' - websiteUrl = 'https://github.com/Dictanova/gora-gradle-plugin' - issueTrackerUrl = 'https://github.com/Dictanova/gora-gradle-plugin/issues' - vcsUrl = 'https://github.com/Dictanova/gora-gradle-plugin.git' + websiteUrl = 'http://gora.apache.org' + issueTrackerUrl = 'https://issues.apache.org/jira/browse/GORA' + vcsUrl = 'http://git.apache.org/gora.git' labels = ['gradle', 'gora', 'avro'] publicDownloadNumbers = true attributes = ['gradle-plugin': 'org.apache.gora:org.apache.gora.gradle:gora-gradle-plugin']