aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle73
1 files changed, 48 insertions, 25 deletions
diff --git a/build.gradle b/build.gradle
index ad2bac2..3462bc7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,20 +1,5 @@
-
-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"
- }
-}
-
apply plugin: "groovy"
apply plugin: "maven"
-apply plugin: "signing"
-apply plugin: 'io.codearte.nexus-staging'
-apply plugin: 'frege-release'
defaultTasks "build"
@@ -30,21 +15,28 @@ ext {
fregeBaseVersion = "3.23.288"
fregeClassifier = "-gaa3af0c"
fregeVersion = "$fregeBaseVersion$fregeClassifier"
+
+ // work around https://issues.gradle.org/browse/GRADLE-3281
+ def home = new File(System.getProperty("user.home"))
+ def propfile = new File(home, ".gradle/gradle.properties")
+ if (propfile.exists()) {
+ props = new Properties()
+ propfile.withReader {
+ props.load(it)
+ System.setProperty "gradle.publish.key", props.'gradle.publish.key'
+ System.setProperty "gradle.publish.secret", props.'gradle.publish.secret'
+ }
+ } else println "cannot find '$propfile.absolutePath'"
}
-apply from: "gradle/sonatype.gradle"
+version = projectVersion
+group = 'org.frege-lang'
repositories {
mavenLocal()
- maven {
- url = sonatypeRepositoryUrl
- }
mavenCentral()
}
-version = projectVersion
-group = groupName
-
dependencies {
compile "org.frege-lang:frege:$fregeVersion"
compile "org.frege-lang:frege-repl-core:1.2"
@@ -53,8 +45,39 @@ dependencies {
compile localGroovy()
}
-nexusStaging {
- packageGroup = groupName
- stagingProfileId = "a622b6773bea07"
+
+// using 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 to ~/.gradle/gradle.properties as
+// 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'
+ }
+ }
+}