Commits

Meikel Brandmeyer committed 862fa27

Allow for local repository configuration

  • Participants
  • Parent commits 8f41a7e

Comments (0)

Files changed (2)

 build
 ng
 .gradle
+local.gradle
+def File local = project.file("local.gradle")
+
+allprojects {
+    useDefaultRepos = true
+
+    if (local.exists()) {
+        apply from: local
+    }
+}
+
 subprojects {
     apply plugin: 'java-base'
 
 
 apply plugin: 'clojure'
 
-repositories {
-    clojarsRepo()
+if (useDefaultRepos) {
+    repositories {
+        clojarsRepo()
+    }
 }
 
 project(':server') {
     apply plugin: 'clojure'
 
-    repositories {
-        clojureReleasesRepo()
-        clojarsRepo()
+    if (useDefaultRepos) {
+        repositories {
+            clojureReleasesRepo()
+            clojarsRepo()
+        }
     }
 
     dependencies {