You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by dr...@apache.org on 2015/11/10 00:00:45 UTC

gora git commit: Replace com.jfrog.bintray by com.gradle.plugin-publish plugin

Repository: gora
Updated Branches:
  refs/heads/master b79fc898f -> a40f72f98


Replace com.jfrog.bintray by com.gradle.plugin-publish plugin


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/a40f72f9
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/a40f72f9
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/a40f72f9

Branch: refs/heads/master
Commit: a40f72f9823507c6995b26203160e8758d2f3276
Parents: b79fc89
Author: Damien Raude-Morvan <dr...@drazzib.com>
Authored: Tue Nov 10 00:00:31 2015 +0100
Committer: Damien Raude-Morvan <dr...@drazzib.com>
Committed: Tue Nov 10 00:00:31 2015 +0100

----------------------------------------------------------------------
 gora-gradle-plugin/README.md    | 13 +++----
 gora-gradle-plugin/build.gradle | 70 ++++++++++--------------------------
 2 files changed, 25 insertions(+), 58 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/a40f72f9/gora-gradle-plugin/README.md
----------------------------------------------------------------------
diff --git a/gora-gradle-plugin/README.md b/gora-gradle-plugin/README.md
index 4a48d49..8620b73 100644
--- a/gora-gradle-plugin/README.md
+++ b/gora-gradle-plugin/README.md
@@ -44,22 +44,23 @@ If you want to build this plugin from a Git checkout, please use Gradle Wrapper
 ./gradlew clean build publishToMavenLocal
 ```
 
-## Publishing to Bintray
+## Publishing to Gradle plugins portal
 
 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
+In order to publish the plugin you must first register with [Gradle plugins portal](https://plugins.gradle.org/docs/submit) and add your API key and secret to your $USER_HOME/.gradle/gradle.properties :
 ```
-export BINTRAY_USER=abc
-export BINTRAY_KEY=xyz
+gradle.publish.key=abc
+gradle.publish.secret=xyz
+
 ```
 Then run the following :
 
-cd $GORA_HOME/gora-gradle-plugin; ./gradlew clean bintrayUpload
+cd $GORA_HOME/gora-gradle-plugin; ./gradlew clean publishPlugins
 
 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)
+ * Uploads those artifacts to Gradle plugins portal
 

http://git-wip-us.apache.org/repos/asf/gora/blob/a40f72f9/gora-gradle-plugin/build.gradle
----------------------------------------------------------------------
diff --git a/gora-gradle-plugin/build.gradle b/gora-gradle-plugin/build.gradle
index 187ac01..df40395 100644
--- a/gora-gradle-plugin/build.gradle
+++ b/gora-gradle-plugin/build.gradle
@@ -16,20 +16,21 @@
  * limitations under the License.
  */
 buildscript {
-    repositories {
-        jcenter()
-    }
-
-    dependencies {
-        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5'
+  repositories {
+    maven {
+      url "https://plugins.gradle.org/m2/"
     }
+  }
+  dependencies {
+    classpath "com.gradle.publish:plugin-publish-plugin:0.9.1"
+  }
 }
 
 apply plugin: 'java-gradle-plugin'
 apply plugin: 'groovy'
 apply plugin: 'maven'
 apply plugin: 'maven-publish'
-apply plugin: 'com.jfrog.bintray'
+apply plugin: "com.gradle.plugin-publish"
 
 repositories {
     mavenCentral()
@@ -42,51 +43,16 @@ dependencies {
     compile "org.apache.gora:gora-compiler:${goraVersion}"
 }
 
-task sourcesJar(type: Jar) {
-    classifier 'sources'
-    from sourceSets.main.allSource
-}
-
-task javadocJar(type: Jar) {
-    classifier 'javadoc'
-    from javadoc
-}
+pluginBundle {
+  website = 'http://gora.apache.org'
+  vcsUrl = 'http://git.apache.org/gora.git'
+  description = 'Gradle plugin for generating Gora beans for Avro schemas'
+  tags = ['gradle', 'gora', 'avro']
 
-artifacts {
-    archives sourcesJar
-    archives javadocJar
-}
-
-publishing {
-    publications {
-        mavenJava(MavenPublication) {
-            from components.java
-            artifact sourcesJar
-            artifact javadocJar
-        }
+  plugins {
+    goraPlugin {
+      id = 'org.apache.gora'
+      displayName = 'Gradle Gora plugin'
     }
+  }
 }
-
-bintray {
-    user = System.getenv('BINTRAY_USER')
-    key = System.getenv('BINTRAY_KEY')
-
-    publications = ['mavenJava']
-    publish = true
-
-    pkg {
-        repo = 'gradle-gora-plugin'
-        name = 'gradle-gora-plugin'
-        licenses = ['Apache-2.0']
-        desc = 'Gradle plugin for generating Gora beans for Avro schemas'
-        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']
-        version = [
-                attributes: ['gradle-plugin': 'org.apache.gora:org.apache.gora.gradle:gora-gradle-plugin']
-        ]
-    }
-}
\ No newline at end of file