From 9f5f4d9a55f82412eb4993f5858b643d1523eff7 Mon Sep 17 00:00:00 2001 From: Scott Murphy Heiberg Date: Thu, 19 Dec 2024 19:49:58 -0800 Subject: [PATCH 1/3] sdkmanrc --- .sdkmanrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.sdkmanrc b/.sdkmanrc index cb8d5cb2..865d5672 100644 --- a/.sdkmanrc +++ b/.sdkmanrc @@ -1 +1,3 @@ -java=17.0.12-librca \ No newline at end of file +java=17.0.13-librca +gradle=8.11.1 + From 0a7af8f2dac6df88ff7ad39127b3541008497940 Mon Sep 17 00:00:00 2001 From: Scott Murphy Heiberg Date: Thu, 19 Dec 2024 20:24:48 -0800 Subject: [PATCH 2/3] Gradle 8.11.1 --- gradle/wrapper/gradle-wrapper.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index df97d72b..e2847c82 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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 From 37cb9706535291acfa1e7efb52e710954c58b63f Mon Sep 17 00:00:00 2001 From: Scott Murphy Heiberg Date: Thu, 19 Dec 2024 20:25:25 -0800 Subject: [PATCH 3/3] support for ./gradlew build -PmavenLocal or -PmavenLocal=last --- build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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) {