From 33c684a29edce712a4a787471ad6a1721ff73379 Mon Sep 17 00:00:00 2001 From: Dierk Koenig Date: Sun, 30 Aug 2015 18:04:42 +0200 Subject: trying to publishPlugins to the gradle plugin portal. Currently fails because of signing issues. --- build.gradle | 34 ++++++++++++++++++++++ .../META-INF/gradle-plugins/frege.properties | 1 - .../gradle-plugins/org.frege-lang.properties | 1 + 3 files changed, 35 insertions(+), 1 deletion(-) delete mode 100644 src/main/resources/META-INF/gradle-plugins/frege.properties create mode 100644 src/main/resources/META-INF/gradle-plugins/org.frege-lang.properties diff --git a/build.gradle b/build.gradle index 1043f9c..cdb810b 100644 --- a/build.gradle +++ b/build.gradle @@ -55,3 +55,37 @@ nexusStaging { stagingProfileId = "a622b6773bea07" } +// First, apply the publishing plugin +buildscript { + repositories { + maven { + url "https://plugins.gradle.org/m2/" + } + } + dependencies { + classpath "com.gradle.publish:plugin-publish-plugin:0.9.1" + } +} + +// Details on how to publish to the gradle plugin portal +// Go to http://plugins.gradle.org, get yourself a publishing key +// and add it under ~/.gradle/gradle.properties +// For publishing, run the task publishPlugins. + +apply plugin: "com.gradle.plugin-publish" + +// The configuration example below shows the minimum required properties +// configured to publish your plugin to the plugin portal +pluginBundle { + website = 'https://github.com/Frege/frege-gradle-plugin' + vcsUrl = 'https://github.com/Frege/frege-gradle-plugin' + description = 'Enabling Frege for compilation, testing, documentation, and supporting tools.' + tags = ['frege', 'haskell', 'java'] + + plugins { + fregePlugin { + id = 'org.frege-lang' + displayName = 'Frege plugin' + } + } +} diff --git a/src/main/resources/META-INF/gradle-plugins/frege.properties b/src/main/resources/META-INF/gradle-plugins/frege.properties deleted file mode 100644 index 25a44ac..0000000 --- a/src/main/resources/META-INF/gradle-plugins/frege.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=frege.gradle.FregePlugin diff --git a/src/main/resources/META-INF/gradle-plugins/org.frege-lang.properties b/src/main/resources/META-INF/gradle-plugins/org.frege-lang.properties new file mode 100644 index 0000000..25a44ac --- /dev/null +++ b/src/main/resources/META-INF/gradle-plugins/org.frege-lang.properties @@ -0,0 +1 @@ +implementation-class=frege.gradle.FregePlugin -- cgit