From 909a32a243f5bf18f9ba010776ab3b9bffd8069d Mon Sep 17 00:00:00 2001 From: Konstantinos Niktas Date: Fri, 29 Jan 2016 15:47:01 -0800 Subject: [PATCH 1/2] Issue #22 Publish to plugins.gradle.org -Renamed plugin to do it :( --- README.md | 6 ++--- build.gradle | 22 +++++++++++++++++++ ...es => com.palantir.flexversion.properties} | 0 3 files changed, 25 insertions(+), 3 deletions(-) rename src/main/resources/META-INF/gradle-plugins/{gradle-flexversion.properties => com.palantir.flexversion.properties} (100%) diff --git a/README.md b/README.md index 4881830..d5327f2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ buildscript { } } -apply plugin: 'gradle-flexversion' +apply plugin: 'com.palantir.flexversion' version flexVersion() ``` @@ -39,7 +39,7 @@ The default usage of Flex Versions picks the branch name as the domain. If the The `build.gradle` file has the following set up for versioning: ```gradle -apply plugin: 'gradle-flexversion' +apply plugin: 'com.palantir.flexversion' flexversion { useTags = true } @@ -66,7 +66,7 @@ If you don't wish to use the branch name as the domain, `flexVersion()` will als The `build.gradle` file has the following set up for versioning: ```gradle -apply plugin: 'gradle-flexversion' +apply plugin: 'com.palantir.flexversion' flexversion { useTags = true } diff --git a/build.gradle b/build.gradle index 16d1f8e..9306b09 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,10 @@ apply plugin: 'maven-publish' apply plugin: 'maven' apply plugin: 'eclipse' apply plugin: 'idea' +apply plugin: "com.gradle.plugin-publish" + +project.ext."gradle.publish.key" = System.env.GRADLE_PUBLISH_KEY +project.ext."gradle.publish.secret" = System.env.GRADLE_PUBLISH_SECRET repositories { mavenCentral() @@ -14,10 +18,14 @@ buildscript { maven { url "http://dl.bintray.com/palantir/releases" } + maven { + url "https://plugins.gradle.org/m2/" + } mavenCentral() } dependencies { classpath "com.palantir:gradle-flexversion:0.8.1" + classpath "com.gradle.publish:plugin-publish-plugin:0.9.3" } } @@ -86,3 +94,17 @@ test { workingDir.deleteDir() workingDir.mkdirs() } + +pluginBundle { + website = "https://github.com/palantir/gradle-flexversion" + vcsUrl = "https://github.com/palantir/gradle-flexversion" + description = "Gradle FlexVersion is a plugin to calculate the flex version of a repo." + tags = ['git', 'version'] + + plugins { + flexVersionPlugin { + id = 'com.palantir.flexversion' + displayName = "Palantir Gradle Flex Version" + } + } +} diff --git a/src/main/resources/META-INF/gradle-plugins/gradle-flexversion.properties b/src/main/resources/META-INF/gradle-plugins/com.palantir.flexversion.properties similarity index 100% rename from src/main/resources/META-INF/gradle-plugins/gradle-flexversion.properties rename to src/main/resources/META-INF/gradle-plugins/com.palantir.flexversion.properties From 58b452a9d2f1c01d685549475fd8a809b26e76ca Mon Sep 17 00:00:00 2001 From: Konstantinos Niktas Date: Fri, 29 Jan 2016 15:50:58 -0800 Subject: [PATCH 2/2] Add CHANGELOG note for rename --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index 519edaf..ce174dc 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ CHANGELOG Future Version ======= +-Breaking: Renamed plugin to com.palantir.flexversion to follow other Palantir plugins.gradle.org naming convention 0.9.0 =======