Skip to content

Commit 0863912

Browse files
committed
only use mavenLocal() for non-CI builds
1 parent 67a30cd commit 0863912

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,15 @@ if (jointBuildGroovyJarProperty) {
7979

8080
allprojects {
8181
repositories {
82-
mavenLocal()
8382
maven { url "http://repo.grails.org/grails/core" }
8483
}
8584

8685
configurations {
8786
all {
8887
resolutionStrategy {
89-
// def cacheHours = isCiBuild ? 1 : 24
90-
// cacheDynamicVersionsFor cacheHours, 'hours'
91-
// cacheChangingModulesFor cacheHours, 'hours'
88+
def cacheHours = isCiBuild ? 1 : 24
89+
cacheDynamicVersionsFor cacheHours, 'hours'
90+
cacheChangingModulesFor cacheHours, 'hours'
9291
}
9392
}
9493
}
@@ -152,6 +151,12 @@ subprojects { project ->
152151
}
153152
}
154153

154+
repositories {
155+
if(!isCiBuild) {
156+
mavenLocal()
157+
}
158+
}
159+
155160
dependencies {
156161
groovy groovyDependency
157162

0 commit comments

Comments
 (0)