diff options
-rw-r--r-- | build.gradle | 34 | ||||
-rw-r--r-- | src/main/resources/META-INF/gradle-plugins/org.frege-lang.properties (renamed from src/main/resources/META-INF/gradle-plugins/frege.properties) | 0 |
2 files changed, 34 insertions, 0 deletions
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/org.frege-lang.properties index 25a44ac..25a44ac 100644 --- a/src/main/resources/META-INF/gradle-plugins/frege.properties +++ b/src/main/resources/META-INF/gradle-plugins/org.frege-lang.properties |