Commits

Meikel Brandmeyer  committed dfe741d

Add dependency on gradle plugins and use local-dotgradle

  • Participants
  • Parent commits 862fa27

Comments (0)

Files changed (1)

File build.gradle

-def File local = project.file("local.gradle")
+buildscript {
+    repositories {
+        mavenRepo urls: "http://clojars.org/repo"
+    }
+    dependencies {
+        classpath "clojuresque:clojuresque:1.4.0"
+        classpath "local-dotgradle:local-dotgradle:1.0.0"
+    }
+}
 
 allprojects {
-    useDefaultRepos = true
-
-    if (local.exists()) {
-        apply from: local
-    }
+    localDotGradle = project(':').file("local.gradle")
+    apply plugin: 'local-dotgradle'
 }
 
 subprojects {
 
 apply plugin: 'clojure'
 
-if (useDefaultRepos) {
-    repositories {
-        clojarsRepo()
-    }
+defaultRepositories {
+    clojarsRepo()
 }
 
 project(':server') {
     apply plugin: 'clojure'
 
-    if (useDefaultRepos) {
-        repositories {
-            clojureReleasesRepo()
-            clojarsRepo()
-        }
+    defaultRepositories {
+        clojureReleasesRepo()
+        clojarsRepo()
     }
 
     dependencies {