Commits

Meikel Brandmeyer  committed 2f68ff6

Added gradleHomeRepo helper to add GRADLE_HOME/lib to repos

  • Participants
  • Parent commits a8c7cf1

Comments (0)

Files changed (1)

File src/main/groovy/clojuresque/ClojurePluginConvention.groovy

     public void clojarsRepo(RepositoryHandler repos) {
         repos.mavenRepo name: 'clojars', urls: 'http://clojars.org/repo'
     }
+
+    public void gradleHomeRepo(RepositoryHandler repos) {
+        String home = System.getenv('GRADLE_HOME')
+        if (home != null) {
+            repos.flatDir name: 'gradleHome', dirs: new File(home + '/lib')
+        }
+    }
     }
 
     public boolean getWarnOnReflection() {