diff options
author | Dierk Koenig <dierk.koenig@canoo.com> | 2015-09-04 00:10:33 +0200 |
---|---|---|
committer | Dierk Koenig <dierk.koenig@canoo.com> | 2015-09-04 00:10:33 +0200 |
commit | b8ffa92a4510b1d935d5beef23da0f8d59e96255 (patch) | |
tree | d88e92bae7c5b3a6bb4369a247bd96f5503bea10 | |
parent | 427f00a87e531b222d91d1f9b462f8ee68d0f0d4 (diff) | |
parent | 0ca49f43ff8440f6e83b895453d8ce56d8a72e9d (diff) | |
download | frege-gradle-plugin-b8ffa92a4510b1d935d5beef23da0f8d59e96255.tar.gz frege-gradle-plugin-b8ffa92a4510b1d935d5beef23da0f8d59e96255.tar.bz2 frege-gradle-plugin-b8ffa92a4510b1d935d5beef23da0f8d59e96255.zip |
Merge branch 'PluginPortal' into SourceSet
-rw-r--r-- | build.gradle | 41 | ||||
-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, 39 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle index 1043f9c..174ccb4 100644 --- a/build.gradle +++ b/build.gradle @@ -1,10 +1,12 @@ buildscript { repositories { + mavenLocal() mavenCentral() } dependencies { classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3" + classpath "com.github.mperry:frege-gradle-release-plugin:0.1" } } @@ -12,6 +14,7 @@ apply plugin: "groovy" apply plugin: "maven" apply plugin: "signing" apply plugin: 'io.codearte.nexus-staging' +apply plugin: 'frege-release' defaultTasks "build" @@ -24,8 +27,8 @@ ext { snapshotAppendix = "-SNAPSHOT" projectVersion = baseVersion + (isSnapshot ? snapshotAppendix : "") - fregeBaseVersion = "3.22.524" - fregeClassifier = "-gcc99d7e" + fregeBaseVersion = "3.23.288" + fregeClassifier = "-gaa3af0c" fregeVersion = "$fregeBaseVersion$fregeClassifier" } @@ -55,3 +58,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 |