Permalink
Browse files

[build] fix for sources jar task

Define the grails central repo for the root project as well.
  • Loading branch information...
1 parent b9a9a59 commit 5dc34a604df245ce867df70b4091bcb5aa014792 @ldaley ldaley committed Dec 11, 2011
Showing with 17 additions and 14 deletions.
  1. +17 −14 build.gradle
View
@@ -80,6 +80,23 @@ if(System.getProperty('groovy.jar')) {
}
}
*/
+
+allprojects {
+ repositories {
+ maven { url "http://repo.grails.org/grails/core" }
+ }
+
+ configurations {
+ all {
+ resolutionStrategy {
+ def cacheHours = isCiBuild ? 0 : 24
+ cacheDynamicVersionsFor cacheHours, 'hours'
+ cacheChangingModulesFor cacheHours, 'hours'
+ }
+ }
+ }
+}
+
subprojects { project ->
apply plugin: 'groovy'
apply plugin: 'maven'
@@ -121,20 +138,6 @@ subprojects { project ->
)
}
- repositories {
- maven { url "http://repo.grails.org/grails/core" }
- }
-
- configurations {
- all {
- resolutionStrategy {
- def cacheHours = isCiBuild ? 0 : 24
- cacheDynamicVersionsFor cacheHours, 'hours'
- cacheChangingModulesFor cacheHours, 'hours'
- }
- }
- }
-
dependencies {
// Groovy
if(System.getProperty('groovy.jar')) {

0 comments on commit 5dc34a6

Please sign in to comment.