diff --git a/build.gradle b/build.gradle index 36c35f6b..beddc60e 100644 --- a/build.gradle +++ b/build.gradle @@ -17,13 +17,19 @@ ext { grailsVersion = grailsVersionList[0] } -subprojects { +subprojects { prj -> configurations.all { // check for updates every build resolutionStrategy.cacheChangingModulesFor 0, 'seconds' } + String useMavenLocal = project.findProperty('mavenLocal') repositories { + if (useMavenLocal || useMavenLocal != 'last') { + println "Using mavenLocal() first on project `${prj.name}`" + mavenLocal() + } + maven { url "https://repo.grails.org/grails/core" } mavenCentral() if(groovyVersion.endsWith('-SNAPSHOT')) { @@ -32,6 +38,10 @@ subprojects { url = 'https://repository.apache.org/content/repositories/snapshots' } } + if (useMavenLocal == 'last') { + println "Using mavenLocal() last on project `${prj.name}`" + mavenLocal() + } } tasks.withType(Test) {