From a4b52a75e899dca0a22e6c49910ee8b77bae9581 Mon Sep 17 00:00:00 2001 From: Daniel Beland Date: Fri, 21 Nov 2014 00:07:22 -0500 Subject: [PATCH] Using plugindev to release the plugin through jcenter and gradle plugin repository --- build.gradle | 65 ++++++++----------- ....github.dcendents.android-maven.properties | 1 - 2 files changed, 27 insertions(+), 39 deletions(-) delete mode 100644 src/main/resources/META-INF/gradle-plugins/com.github.dcendents.android-maven.properties diff --git a/build.gradle b/build.gradle index 1a0d174..a284cb9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,20 +1,8 @@ -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7.1', - 'com.github.townsfolk:gradle-release:1.2' - } +plugins { + id 'nu.studer.plugindev' version '1.0.3' } -apply plugin: 'java-gradle-plugin' -apply plugin: 'maven' -apply plugin: 'nexus' -apply plugin: 'signing' -apply plugin: 'release' - repositories { mavenCentral() mavenLocal() @@ -26,31 +14,32 @@ dependencies { sourceCompatibility = 1.6 targetCompatibility = 1.6 -modifyPom { - project { - name 'Gradle Android Maven plugin' - description 'Modification to the standard Maven plugin to be compatible with android-library projects (aar).' - url 'https://github.com/dcendents/android-maven-plugin' - inceptionYear '2013' - - scm { - url 'https://github.com/dcendents/android-maven-plugin' - connection 'scm:https://github.com/dcendents/android-maven-plugin.git' - developerConnection 'scm:git://github.com/dcendents/android-maven-plugin.git' - } - - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0' - } - } +plugindev { + pluginId = 'com.github.dcendents.android-maven' + pluginImplementationClass 'org.gradle.api.plugins.AndroidMavenPlugin' + pluginName 'Gradle Android Maven plugin' + pluginDescription 'Modification to the standard Maven plugin to be compatible with android-library projects (aar).' + pluginLicenses 'Apache-2.0' + pluginTags 'gradle', 'plugin', 'android', 'maven' + authorId 'dcendents' + authorName 'Daniel Beland' + authorEmail 'dcendents@gmail.com' + projectUrl 'https://github.com/dcendents/android-maven-plugin' + projectInceptionYear '2013' + done() // do not omit this +} - developers { - developer { - id 'dcendents' - name 'Daniel Beland' - email 'dcendents@gmail.com' +bintray { + user = "${bintrayUsername}" + key = "${bintrayApiKey}" + + dryRun = false + publish = true + pkg { + repo = 'gradle-plugins' + version { + gpg { + sign = true } } } diff --git a/src/main/resources/META-INF/gradle-plugins/com.github.dcendents.android-maven.properties b/src/main/resources/META-INF/gradle-plugins/com.github.dcendents.android-maven.properties deleted file mode 100644 index abb5a8a..0000000 --- a/src/main/resources/META-INF/gradle-plugins/com.github.dcendents.android-maven.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=org.gradle.api.plugins.AndroidMavenPlugin