Skip to content

Commit

Permalink
Merge pull request #274 from grails/7.0.x-simplify
Browse files Browse the repository at this point in the history
7.0.x simplify
  • Loading branch information
codeconsole authored Dec 20, 2024
2 parents 9754062 + 37cb970 commit 8d9beb9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
java=17.0.12-librca
java=17.0.13-librca
gradle=8.11.1

12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 8d9beb9

Please sign in to comment.