Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[build] fix for sources jar task

Define the grails central repo for the root project as well.
  • Loading branch information...
commit 5dc34a604df245ce867df70b4091bcb5aa014792 1 parent b9a9a59
Luke Daley authored December 11, 2011

Showing 1 changed file with 17 additions and 14 deletions. Show diff stats Hide diff stats

  1. 31  build.gradle
31  build.gradle
@@ -80,6 +80,23 @@ if(System.getProperty('groovy.jar')) {
80 80
     }
81 81
 }
82 82
 */
  83
+
  84
+allprojects {
  85
+    repositories {
  86
+        maven { url "http://repo.grails.org/grails/core" }
  87
+    }
  88
+
  89
+    configurations {
  90
+        all {
  91
+            resolutionStrategy {
  92
+                def cacheHours = isCiBuild ? 0 : 24
  93
+                cacheDynamicVersionsFor cacheHours, 'hours'
  94
+                cacheChangingModulesFor cacheHours, 'hours'
  95
+            }
  96
+        }
  97
+    }
  98
+}
  99
+
83 100
 subprojects { project ->
84 101
     apply plugin: 'groovy'
85 102
     apply plugin: 'maven'
@@ -121,20 +138,6 @@ subprojects { project ->
121 138
         )
122 139
     }
123 140
 
124  
-    repositories {
125  
-        maven { url "http://repo.grails.org/grails/core" }
126  
-    }
127  
-
128  
-    configurations {
129  
-        all {
130  
-            resolutionStrategy {
131  
-                def cacheHours = isCiBuild ? 0 : 24
132  
-                cacheDynamicVersionsFor cacheHours, 'hours'
133  
-                cacheChangingModulesFor cacheHours, 'hours'
134  
-            }
135  
-        }
136  
-    }
137  
-
138 141
     dependencies {
139 142
         // Groovy
140 143
         if(System.getProperty('groovy.jar')) {

0 notes on commit 5dc34a6

Please sign in to comment.
Something went wrong with that request. Please try again.