From c8fbd2d175d11193b70a8da79ee399da5849104f Mon Sep 17 00:00:00 2001 From: Dierk Koenig Date: Fri, 4 Sep 2015 14:02:30 +0200 Subject: Remove dependencies to sonatype and directly publish to the gradle plugin portal. Upgrade to frege version 3.23, --- README.adoc | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) (limited to 'README.adoc') diff --git a/README.adoc b/README.adoc index e8f3b81..c635ae0 100644 --- a/README.adoc +++ b/README.adoc @@ -3,34 +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. -The latest release is 0.4.1. Note that the 0.3 experimented with _github releases_ and http://jitpack.io. There seems to be access issues to the 0.3 release, please use the 0.4-SNAPSHOT snapshot release. += How to refer to on a gradle build -[source, groovy] ----- -buildscript { // make the frege plugin available in our build - repositories { - mavenLocal() // if you have the plugin installed locally, this is enough - maven { - url "https://oss.sonatype.org/content/groups/public" - } - } - dependencies { - classpath 'org.frege-lang:frege-gradle-plugin:0.4.1' - } -} ----- - - -To locally install this plugin use - - gradlew clean install - - -NOTE: There is no need to install gradle or anything else beside a recent Java version. - It is all self-installing. +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-plugin/ . - -The snapshot builds are automatically deployed to Sonatype at https://oss.sonatype.org/content/groups/public/org/frege-lang/frege-gradle-plugin/. +The Travis CI build of this repository is at https://travis-ci.org/Frege/frege-gradle-plugin/ . \ No newline at end of file -- cgit From eef4301d5439f51a418d27a9509e4e3812e2f348 Mon Sep 17 00:00:00 2001 From: Dierk Koenig Date: Fri, 4 Sep 2015 15:30:17 +0200 Subject: travis has no gradle properties under home dir, so make that optional --- README.adoc | 2 +- build.gradle | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'README.adoc') diff --git a/README.adoc b/README.adoc index c635ae0..09139e4 100644 --- a/README.adoc +++ b/README.adoc @@ -9,4 +9,4 @@ 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-plugin/ . \ No newline at end of file +The Travis CI build of this repository is at https://travis-ci.org/Frege/frege-gradle-pgitlugin/ . \ No newline at end of file diff --git a/build.gradle b/build.gradle index bcf47c5..0e5f6ad 100644 --- a/build.gradle +++ b/build.gradle @@ -18,12 +18,14 @@ ext { // 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") - 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' - } + 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'" } version = projectVersion -- cgit