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

paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 6b729cd  prepare for 4.0.2 release
6b729cd is described below

commit 6b729cdfd23b8ff0a2ea6fba5bc8bf3b097c9cc5
Author: Paul King <[email protected]>
AuthorDate: Fri Apr 29 15:48:15 2022 +1000

    prepare for 4.0.2 release
---
 site/src/site/pages/download.groovy | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/site/src/site/pages/download.groovy 
b/site/src/site/pages/download.groovy
index 2c86741..bdc15d0 100644
--- a/site/src/site/pages/download.groovy
+++ b/site/src/site/pages/download.groovy
@@ -154,6 +154,10 @@ layout 'layouts/main.groovy', true,
                                             a(href: u, ext)
                                         }
                                     }
+                                    def apacheDistUrl = { pkg, type ->
+                                        def v = pkg.version
+                                        pkg.archive ? archiveUrl('src', 
'sources', v) : 
"https://www.apache.org/dyn/closer.lua/groovy/${v}/distribution/apache-groovy-$type-${v}.zip?action=download";
+                                    }
                                     def srcUrl = { pkg ->
                                         def v = pkg.version
                                         pkg.archive ? archiveUrl('src', 
'sources', v) : 
"https://www.apache.org/dyn/closer.lua/groovy/${v}/sources/apache-groovy-src-${v}.zip?action=download";
@@ -169,6 +173,10 @@ layout 'layouts/main.groovy', true,
                                                         br()
                                                         yield 'binary'
                                                     }
+                                                    yield ' '
+                                                    a(href: apacheDistUrl(pkg, 
'binary')) {
+                                                        yield '(mirror)'
+                                                    }
                                                     buildExtras(pkg.archive ? 
'' : 'dist: ', 'binary', 'distribution', v, pkg.archive)
                                                     if (!pkg.archive) {
                                                         buildExtras('perm: ', 
'binary', 'distribution', v, true)
@@ -188,6 +196,10 @@ layout 'layouts/main.groovy', true,
                                                         br()
                                                         yield ' documentation'
                                                     }
+                                                    yield ' '
+                                                    a(href: apacheDistUrl(pkg, 
'docs')) {
+                                                        yield '(mirror)'
+                                                    }
                                                     buildExtras(pkg.archive ? 
'' : 'dist: ', 'docs', 'distribution', v, pkg.archive)
                                                     if (!pkg.archive) {
                                                         buildExtras('perm: ', 
'docs', 'distribution', v, true)
@@ -199,6 +211,10 @@ layout 'layouts/main.groovy', true,
                                                         br()
                                                         yield ' SDK bundle'
                                                     }
+                                                    yield ' '
+                                                    a(href: apacheDistUrl(pkg, 
'sdk')) {
+                                                        yield '(mirror)'
+                                                    }
                                                     buildExtras(pkg.archive ? 
'' : 'dist: ', 'sdk', 'distribution', v, pkg.archive)
                                                     if (!pkg.archive) {
                                                         buildExtras('perm: ', 
'sdk', 'distribution', v, true)
@@ -414,11 +430,11 @@ layout 'layouts/main.groovy', true,
                                         tr {
                                             td(colspan: 3) {
                                                 yield 'For '
-                                                code 'groovy-all'
+                                                code 'groovy-bom'
                                                 yield ' when using Gradle 6+ 
use '
-                                                code "implementation 
platform('org.apache.groovy:groovy-all:x.y.z')"
+                                                code "implementation 
platform('org.apache.groovy:groovy-bom:x.y.z')"
                                                 yield ' instead of '
-                                                code "implementation 
'org.codehaus.groovy:groovy-all:x.y.z'"
+                                                code "implementation 
'org.codehaus.groovy:groovy-bom:x.y.z'"
                                                 yield '.'
                                             }
                                         }

Reply via email to