diff options
author | Mark Perry <maperry78@yahoo.com.au> | 2015-09-12 13:52:30 +1000 |
---|---|---|
committer | Mark Perry <maperry78@yahoo.com.au> | 2015-09-12 13:52:30 +1000 |
commit | 8204c2f65d11f1d4b862286d59f7081178a10d97 (patch) | |
tree | 21f763cdb4b60cb59cb42ea03156c75b31306796 | |
parent | f130a34a84a3ac3433e10bee7a6b516569feeb3b (diff) | |
download | frege-gradle-plugin-8204c2f65d11f1d4b862286d59f7081178a10d97.tar.gz frege-gradle-plugin-8204c2f65d11f1d4b862286d59f7081178a10d97.tar.bz2 frege-gradle-plugin-8204c2f65d11f1d4b862286d59f7081178a10d97.zip |
#16: Fixing errors with changes for using the plugin portal
-rw-r--r-- | README.adoc | 4 | ||||
-rw-r--r-- | build.gradle | 28 |
2 files changed, 22 insertions, 10 deletions
diff --git a/README.adoc b/README.adoc index 09139e4..4af9678 100644 --- a/README.adoc +++ b/README.adoc @@ -3,10 +3,10 @@ This is the official Gradle plugin to compile Frege projects (https://github.com/Frege/frege). See the example project, https://github.com/mperry/frege-gradle-example, for how to use this plugin. -= How to refer to on a gradle build += Usage See https://plugins.gradle.org/plugin/org.frege-lang = Continuous Integration -The Travis CI build of this repository is at https://travis-ci.org/Frege/frege-gradle-pgitlugin/ .
\ No newline at end of file +The Travis CI build of this repository is at https://travis-ci.org/Frege/frege-gradle-plugin.
\ No newline at end of file diff --git a/build.gradle b/build.gradle index 3462bc7..5991631 100644 --- a/build.gradle +++ b/build.gradle @@ -7,10 +7,11 @@ sourceCompatibility = 1.7 targetCompatibility = 1.7 ext { - baseVersion = "0.4.2" + baseVersion = "0.5" isSnapshot = true snapshotAppendix = "-SNAPSHOT" projectVersion = baseVersion + (isSnapshot ? snapshotAppendix : "") + projectGroup = "org.frege-lang" fregeBaseVersion = "3.23.288" fregeClassifier = "-gaa3af0c" @@ -23,14 +24,26 @@ ext { 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' + def keyName = "gradle.publish.key" + def key = props.getProperty(keyName) + if (key == null) { + println "No key named $keyName found in ${propfile.absolutePath}" + } + def secretName = "gradle.publish.secret" + def secret = props.getProperty(secretName) + if (secret == null) { + println "No key named $secretName found in ${propfile.absolutePath}" + } + if (key != null && secret != null) { + System.setProperty "gradle.publish.key", props.'gradle.publish.key' + System.setProperty "gradle.publish.secret", props.'gradle.publish.secret' + } } } else println "cannot find '$propfile.absolutePath'" } version = projectVersion -group = 'org.frege-lang' +group = projectGroup repositories { mavenLocal() @@ -38,14 +51,13 @@ repositories { } dependencies { - compile "org.frege-lang:frege:$fregeVersion" - compile "org.frege-lang:frege-repl-core:1.2" - compile "org.frege-lang:frege-native-gen:1.3" + compile "$projectGroup:frege:$fregeVersion" + compile "$projectGroup:frege-repl-core:1.2" + compile "$projectGroup:frege-native-gen:1.3" compile gradleApi() compile localGroovy() } - // using the publishing plugin buildscript { |