You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2025/10/12 21:21:59 UTC

(grails-static-website) branch master updated: Add post-grad URLs for Downloads Page

This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/grails-static-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 15950a6d34d Add post-grad URLs for Downloads Page
15950a6d34d is described below

commit 15950a6d34d29a1d18616fd996149881dc786360
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Sun Oct 12 17:21:56 2025 -0400

    Add post-grad URLs for Downloads Page
    
    Both exist until we have released all projects post graduation
---
 .../groovy/org/grails/documentation/DownloadPage.groovy | 17 +++++++++++++----
 1 file changed, 13 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 4f17556ecc2..7dc1e4cf5ed 100644
--- a/buildSrc/src/main/groovy/org/grails/documentation/DownloadPage.groovy
+++ b/buildSrc/src/main/groovy/org/grails/documentation/DownloadPage.groovy
@@ -34,6 +34,15 @@ class DownloadPage {
         "https://www.apache.org/dyn/closer.lua/incubator/grails/${directory}/${version}/sources/apache-${artifact}-${version}-incubating-src.zip${ext}?action=download"
     }
 
+    static String binaryUrlPostGrad(String version, String artifact = 'grails', String ext = '', String directory = 'core') {
+        "https://www.apache.org/dyn/closer.lua/grails/${directory}/${version}/distribution/apache-${artifact}-${version}-bin.zip${ext}?action=download"
+
+    }
+
+    static String sourceUrlPostGrad(String version, String artifact = 'grails', String ext = '', String directory = 'core') {
+        "https://www.apache.org/dyn/closer.lua/grails/${directory}/${version}/sources/apache-${artifact}-${version}-src.zip${ext}?action=download"
+    }
+
     @CompileDynamic
     static String renderDownload(String version) {
         String redisVersion = '5.0.0-RC2'
@@ -85,9 +94,9 @@ class DownloadPage {
                                 a(href: sourceUrl(quartzVersion, 'grails-quartz', '.asc', 'quartz'), 'ASC')
                             }
                             li {
-                                a(href: sourceUrl(grailsGithubActionsVersion, 'grails-github-actions', '', 'actions'), "Grails GitHub Actions ${grailsGithubActionsVersion} Source")
-                                a(href: sourceUrl(grailsGithubActionsVersion, 'grails-github-actions', '.sha512', 'actions'), 'SHA512')
-                                a(href: sourceUrl(grailsGithubActionsVersion, 'grails-github-actions', '.asc', 'actions'), 'ASC')
+                                a(href: sourceUrlPostGrad(grailsGithubActionsVersion, 'grails-github-actions', '', 'actions'), "Grails GitHub Actions ${grailsGithubActionsVersion} Source")
+                                a(href: sourceUrlPostGrad(grailsGithubActionsVersion, 'grails-github-actions', '.sha512', 'actions'), 'SHA512')
+                                a(href: sourceUrlPostGrad(grailsGithubActionsVersion, 'grails-github-actions', '.asc', 'actions'), 'ASC')
                             }
                             li {
                                 a(href: sourceUrl(grailsGradlePublishVersion, 'grails-publish', '', 'grails-publish'), "Grails Publish Gradle Plugin ${grailsGradlePublishVersion} Source")
@@ -116,7 +125,7 @@ class DownloadPage {
                                 a(href: "https://github.com/apache/grails-github-actions/releases/tag/v${grailsGithubActionsVersion}", "Grails GitHub Actions ${grailsGithubActionsVersion} Release Notes")
                             }
                             li {
-                                a(href: "https://github.com/apache/incubator-grails-gradle-publish/releases/tag/v${grailsGradlePublishVersion}", "Grails Publish Gradle Plugin ${grailsGradlePublishVersion} Release Notes")
+                                a(href: "https://github.com/apache/grails-gradle-publish/releases/tag/v${grailsGradlePublishVersion}", "Grails Publish Gradle Plugin ${grailsGradlePublishVersion} Release Notes")
                             }
                         }
                     }