This is an automated email from the ASF dual-hosted git repository. matrei pushed a commit to branch 7-download-location in repository https://gitbox.apache.org/repos/asf/grails-static-website.git
commit b6438aec6362e16b38c4bd573ce5c5f1e2631395 Author: Mattias Reichel <[email protected]> AuthorDate: Wed Jan 14 17:59:59 2026 +0100 fix: use apache download site for Grails 7+ --- .../main/groovy/org/grails/documentation/DownloadPage.groovy | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/buildSrc/src/main/groovy/org/grails/documentation/DownloadPage.groovy b/buildSrc/src/main/groovy/org/grails/documentation/DownloadPage.groovy index b2f6ecb2ef4..17c0d7b168a 100644 --- a/buildSrc/src/main/groovy/org/grails/documentation/DownloadPage.groovy +++ b/buildSrc/src/main/groovy/org/grails/documentation/DownloadPage.groovy @@ -45,13 +45,12 @@ class DownloadPage { * Does not handle pre-release versions as these are not displayed in the select box. */ static String resolveOldDownloadUrl(String version) { - def baseUrl = 'https://github.com/apache/grails-core/releases/download' def parts = ((version.split(/\./)*.replaceAll(/\D.*/, '')*.toInteger()) + [0, 0, 0]).take(3) def (major, minor, patch) = [parts[0], parts[1], parts[2]] - def artifactName = "apache-grails-$version-bin" def tag = "v$version" if (major < 7) { - artifactName = "grails-$version" + def baseUrl = 'https://github.com/apache/grails-core/releases/download' + def artifactName = "grails-$version" if (major == 6) { baseUrl = 'https://github.com/apache/grails-forge/releases/download' artifactName = "grails-cli-$version" @@ -62,8 +61,11 @@ class DownloadPage { if (major <= 1 && patch == 0) { tag = "v$major.$minor" } + return "$baseUrl/$tag/${artifactName}.zip" + } + else { + return "https://www.apache.org/dyn/closer.lua/grails/core/$version/distribution/apache-grails-$version-bin.zip?action=download" } - return "$baseUrl/$tag/${artifactName}.zip" } @CompileDynamic
