Commits

Meikel Brandmeyer committed 3ee0aa2

Act explicit on the given RepositoryHandler for repositories

  • Participants
  • Parent commits 24fb49e

Comments (0)

Files changed (1)

src/main/groovy/clojuresque/ClojurePluginConvention.groovy

 package clojuresque
 
 import org.gradle.api.Project
+import org.gradle.api.artifacts.dsl.RepositoryHandler
 
 class ClojurePluginConvention {
     Project project
         this.aotCompile = false
     }
 
-    public void clojureSnapshotsRepo() {
-        project.repositories.mavenRepo name: 'clojureHudson', urls: 'http://build.clojure.org/snapshots'
+    public void clojureSnapshotsRepo(RepositoryHandler repos) {
+        repos.mavenRepo name: 'clojureHudson', urls: 'http://build.clojure.org/snapshots'
     }
 
-    public void clojarsRepo() {
-        project.repositories.mavenRepo name: 'clojars', urls: 'http://clojars.org/repo'
+    public void clojarsRepo(RepositoryHandler repos) {
+        repos.mavenRepo name: 'clojars', urls: 'http://clojars.org/repo'
+    }
     }
 
     public boolean getWarnOnReflection() {