[groovy-dev-site] branch asf-site updated: 2023/08/23 06:30:59: Generated dev website from groovy-website@3a5745f

2023-08-22 Thread git-site-role
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/asf-site by this push:
 new d66a5bb  2023/08/23 06:30:59: Generated dev website from 
groovy-website@3a5745f
d66a5bb is described below

commit d66a5bb6c2bd7d5b6aca4c18b0685f6dc3f1d502
Author: jenkins 
AuthorDate: Wed Aug 23 06:30:59 2023 +

2023/08/23 06:30:59: Generated dev website from groovy-website@3a5745f
---
 blog/adventures-with-groovyfx.html   |  2 +-
 blog/classifying-iris-flowers-with-deep.html |  2 +-
 blog/comparators-and-sorting-in-groovy.html  |  2 +-
 blog/deck-of-cards-with-groovy.html  |  2 +-
 blog/deep-learning-and-eclipse-collections.html  |  2 +-
 blog/detecting-objects-with-groovy-the.html  |  2 +-
 blog/feed.atom   | 12 ++--
 blog/fruity-eclipse-collections.html |  2 +-
 blog/gmavenplus-1-6-2-released.html  |  2 +-
 blog/groovy-2-4-16-released.html |  2 +-
 blog/groovy-2-4-16-windows.html  |  2 +-
 blog/groovy-2-4-17-released.html |  2 +-
 blog/groovy-2-5-0-released.html  |  2 +-
 blog/groovy-2-5-1-released.html  |  2 +-
 blog/groovy-2-5-2-released.html  |  2 +-
 blog/groovy-2-5-2-windows.html   |  2 +-
 blog/groovy-2-5-3-released.html  |  2 +-
 blog/groovy-2-5-3-windows.html   |  2 +-
 blog/groovy-2-5-4-released.html  |  2 +-
 blog/groovy-2-5-4-windows.html   |  2 +-
 blog/groovy-2-5-5-released.html  |  2 +-
 blog/groovy-2-5-5-windows.html   |  2 +-
 blog/groovy-2-5-6-released.html  |  2 +-
 blog/groovy-2-5-7-and.html   |  2 +-
 blog/groovy-2-5-7-released.html  |  2 +-
 blog/groovy-2-5-clibuilder-renewal.html  |  2 +-
 blog/groovy-3-0-0-alpha.html |  2 +-
 blog/groovy-3-0-0-alpha1.html|  2 +-
 blog/groovy-3-0-0-beta.html  |  2 +-
 blog/groovy-3-0-0-beta1.html |  2 +-
 blog/groovy-3-0-0-beta2.html |  2 +-
 blog/groovy-4-0-3-released.html  |  2 +-
 blog/groovy-dauphine.html|  2 +-
 blog/groovy-haiku-processing.html|  2 +-
 blog/groovy-list-processing-cheat-sheet.html |  2 +-
 blog/groovy-null-processing.html |  2 +-
 blog/groovy-record-performance.html  |  2 +-
 blog/groovy-records.html |  2 +-
 blog/groovy-release-train-4-0.html   |  2 +-
 blog/groovy-sequenced-collections.html   |  2 +-
 blog/helloworldemoji.html|  2 +-
 blog/index.html  |  4 ++--
 blog/lego-bricks-with-groovy.html|  2 +-
 blog/matrix-calculations-with-groovy-apache.html |  2 +-
 blog/parsing-json-with-groovy.html   |  2 +-
 blog/reading-and-writing-csv-files.html  |  2 +-
 blog/using-groovy-with-apache-wayang.html|  2 +-
 blog/whiskey-clustering-with-groovy-and.html |  2 +-
 blog/wordle-checker.html |  2 +-
 blog/zipping-collections-with-groovy.html|  2 +-
 download.html|  2 +-
 51 files changed, 57 insertions(+), 57 deletions(-)

diff --git a/blog/adventures-with-groovyfx.html 
b/blog/adventures-with-groovyfx.html
index f61e2fd..439165d 100644
--- a/blog/adventures-with-groovyfx.html
+++ b/blog/adventures-with-groovyfx.html
@@ -53,7 +53,7 @@
 
 
 
-Blog indexAdventures with GroovyFXFurther 
informationRelated postsBlog indexAdventures with GroovyFXFurther 
informationRelated postsBlog indexClassifying Iris Flowers with Deep Learning, Groovy and 
GraalVMDeep 
LearningEncogEclipse DeepLe [...]
+Blog indexClassifying Iris Flowers with Deep Learning, Groovy and 
GraalVMDeep 
LearningEncogEclipse DeepLe [...]
 
 
 
diff --git a/blog/comparators-and-sorting-in-groovy.html 
b/blog/comparators-and-sorting-in-groovy.html
index ec6b629..3e08d09 100644
--- a/blog/comparators-and-sorting-in-groovy.html
+++ b/blog/comparators-and-sorting-in-groovy.html
@@ -53,7 +53,7 @@
 
 
 
-Blog indexComparators and Sorting in GroovyThe Java 
comparator story recapThe Groovy comparator storyBlog indexComparators and Sorting in GroovyThe Java 
comparator story recapThe Groovy comparator storyBlog indexDeck of cards with Groovy, JDK collections and Eclipse 
CollectionsRelated pos

[groovy-website] branch asf-site updated: add windows installers

2023-08-22 Thread paulk
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 3a5745f  add windows installers
3a5745f is described below

commit 3a5745fdef417ba69fdd314ca0f737007ba821ab
Author: Paul King 
AuthorDate: Wed Aug 23 16:11:23 2023 +1000

add windows installers
---
 site/src/site/sitemap-dev.groovy | 23 ---
 1 file changed, 4 insertions(+), 19 deletions(-)

diff --git a/site/src/site/sitemap-dev.groovy b/site/src/site/sitemap-dev.groovy
index e2b7421..f85ffa8 100644
--- a/site/src/site/sitemap-dev.groovy
+++ b/site/src/site/sitemap-dev.groovy
@@ -86,7 +86,7 @@ downloads {
 }
 version('5.0.0-alpha-1') {
 stable false
-//windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-5.0.0-alpha-1/'
+windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-5.0.0-alpha-1/'
 }
 }
 distribution('Groovy 4.0') {
@@ -98,12 +98,7 @@ downloads {
 }
 version('4.0.14') {
 stable true
-//windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-4.0.14/'
-}
-version('4.0.13') {
-stable true
-archive true
-windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-4.0.13/'
+windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-4.0.14/'
 }
 }
 distribution('Groovy 3.0') {
@@ -115,12 +110,7 @@ downloads {
 }
 version('3.0.19') {
 stable true
-//windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-3.0.19/'
-}
-version('3.0.18') {
-stable true
-archive true
-windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-3.0.18/'
+windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-3.0.19/'
 }
 }
 distribution('Groovy 2.5') {
@@ -132,12 +122,7 @@ downloads {
 }
 version('2.5.23') {
 stable true
-//windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-2.5.23/'
-}
-version('2.5.22') {
-stable true
-archive true
-windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-2.5.22/'
+windowsInstaller 
'https://groovy.jfrog.io/artifactory/dist-release-local/groovy-windows-installer/groovy-2.5.23/'
 }
 }
 distribution('Groovy 2.4') {



[groovy-website] branch asf-site updated: prep work for 5.0.0-alpha-1

2023-08-22 Thread paulk
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 4ddd1e4  prep work for 5.0.0-alpha-1
4ddd1e4 is described below

commit 4ddd1e4d8536cee14503b8b005e46ceaa87d95c9
Author: Paul King 
AuthorDate: Wed Aug 23 15:43:37 2023 +1000

prep work for 5.0.0-alpha-1
---
 site/src/site/releasenotes/groovy-5.0.adoc | 187 +++--
 1 file changed, 180 insertions(+), 7 deletions(-)

diff --git a/site/src/site/releasenotes/groovy-5.0.adoc 
b/site/src/site/releasenotes/groovy-5.0.adoc
index 30d1b9a..2a3ba4e 100644
--- a/site/src/site/releasenotes/groovy-5.0.adoc
+++ b/site/src/site/releasenotes/groovy-5.0.adoc
@@ -14,15 +14,13 @@ feedback on the language changes from our community. In 
addition, early versions
 assist other projects and tool vendors within the Groovy ecosystem to begin 
assessing
 the impact of moving to/supporting Groovy 5.0. Caution should be exercised if 
using
 new features as the details may change before final release. +
-Some features described here as "incubating" may become stable before 5.0.0
-final is released, others are expected to remain incubating for version 5.
+  +
 We don’t recommend using alpha versions or incubating features for production 
systems.
 We don't regard alpha versions as being feature-complete, so caution should be 
exercised
 before undertaking any large scale ports to Groovy 5. Having said that, we 
don't
 expect porting to Groovy 5 from Groovy 4 should involve much effort.
 |===
 
-
 [[Groovy5.0-new]]
 == New features
 
@@ -36,8 +34,74 @@ var (x, y) = [1, 2]
 assert x == 1 && y == 2
 
 
+=== AST transform additions and improvements
+
+There is a new `OperatorRename` AST transform.
+This is very useful when using third-party libraries which use different
+names to those used by Groovy's operator overloading functionality.
+For example, using the Apache Commons Numbers Fraction library:
+
+[source,groovy]
+
+@OperatorRename(plus='add')
+def testAddOfTwoFractions() {
+var half = Fraction.of(1, 2)
+var third = Fraction.of(1, 3)
+assert half.add(third) == Fraction.of(5, 6)  // old style still works
+assert half + third == Fraction.of(5, 6) // fraction '+' operator!
+}
+
+
+This transform is quite handy when using various matrix packages.
+Such packages often align with Groovy's operator overloading conventions
+for many, but usually not all, operators.
+For instance, you might like to rename:
+
+* `mult` to `multiply` if using Ejml
+* `add` to `plus` if using Commons Math matrices
+* `sub` to `minus` if using Nd4j matrices
+
 === Extension method additions and improvements
 
+ Additional primitive array extensions
+
+There are over 160 additional extension methods on primitive arrays.
+Methods like `any`, `chop`, `each`, `eachWithIndex`, `equals`, `every`,
+`first`, `head`, `init`, `join`, `last`, `max`, `maxBy`, `maxComparing`,
+`min`, `minBy`, `minComparing`, `reverse`, `reverseEach`, `tail`, and 
`transpose`
+now have variants for primitive arrays like `int[]`, `long[]`, `double[]`, etc.
+And methods like `flatten` are added for `int[][]`,`long[][]`, etc.
+
+Some examples:
+
+[source,groovy]
+
+int[] nums = -3..2
+assert nums.any{ it > 1 }
+   && nums.every(n -> n < 4)
+   && nums.join(' ') == '-3 -2 -1 0 1 2'
+   && nums.head() == -3
+   && nums.tail() == -2..2
+   && nums.max() == 2
+   && nums.min{ it.abs() } == 0
+   && nums.maxComparing(Comparator.reverseOrder()) == -3
+   && nums.reverse() == 2..-3
+
+int[][] matrix = [[1,   2],
+  [10,  20],
+  [100, 200]]
+assert matrix.transpose() == [[1, 10, 100],
+  [2, 20, 200]]
+
+
+In some cases, the methods existed for a few of the primitive types but now 
work with more primitive types.
+In numerous cases, the functionality was only available by converting the 
array to a list first - which was easy but increased memory usage and decreased 
performance.
+For other cases, implementations now avoid un/boxing where possible.
+All up this means that Groovy now works better in data science scenarios
+allowing more streamlined and performant code.
+
+ Additional File and Path extensions
+
 There are some additional extension methods for `File` objects:
 
 [source,groovy]
@@ -49,6 +113,7 @@ assert myscript.baseName == 'MyScript'
 
 
 And similar methods for `Path` objects:
+
 [source,groovy]
 
 def mypic = path.resolve('MyFigure.png')
@@ -57,6 +122,28 @@ assert mypic.extension == 'png'
 assert mypic.baseName == 'MyFigure'
 
 
+ Additional Collection extensions
+
+We have added a `flattenMany` method which is a close cousin to the
+`collectMany` method. These are Groovy's `flatMap` like methods.
+
+[source,groovy]
+
+var items = ["1", "2", "foo

[groovy] 01/03: GROOVY-11160: Bump ivy to 2.5.2

2023-08-22 Thread paulk
This is an automated email from the ASF dual-hosted git repository.

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

commit 586ef238360a79be7b84aa205618eebd6d36b138
Author: Paul King 
AuthorDate: Wed Aug 23 09:39:10 2023 +1000

GROOVY-11160: Bump ivy to 2.5.2
---
 versions.properties | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/versions.properties b/versions.properties
index de21116c39..4591759ff7 100644
--- a/versions.properties
+++ b/versions.properties
@@ -26,7 +26,7 @@ cobertura=1.9.4.1
 commonsCli=1.5.0
 commonsMath3=3.6.1
 gpars=1.2.1
-ivy=2.5.1
+ivy=2.5.2
 jansi=2.4.0
 jacksonDatabind=2.15.2
 jackson=2.15.2



[groovy] 03/03: update dependency metadata

2023-08-22 Thread paulk
This is an automated email from the ASF dual-hosted git repository.

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

commit c6cf00c9f07e879359923b3c6edb5ad2663f29f5
Author: Paul King 
AuthorDate: Wed Aug 23 09:44:20 2023 +1000

update dependency metadata
---
 gradle/verification-metadata.xml | 11 +--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
index 89c5c017eb..343ed71e73 100644
--- a/gradle/verification-metadata.xml
+++ b/gradle/verification-metadata.xml
@@ -326,6 +326,11 @@
 
  
   
+  
+ 
+
+ 
+  
   
  
 
@@ -804,11 +809,13 @@

 
  
- 
+  
+  
+ 
 

 
-
+
  
   
   



[groovy] branch master updated (17bc993b3e -> c6cf00c9f0)

2023-08-22 Thread paulk
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


from 17bc993b3e GROOVY-11159: protect class definition from modification 
via a reference
 new 586ef23836 GROOVY-11160: Bump ivy to 2.5.2
 new adfcbc63a6 GROOVY-11162: Bump Ant version to 1.10.14
 new c6cf00c9f0 update dependency metadata

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 gradle/verification-metadata.xml | 11 +--
 versions.properties  |  4 ++--
 2 files changed, 11 insertions(+), 4 deletions(-)



[groovy] 02/03: GROOVY-11162: Bump Ant version to 1.10.14

2023-08-22 Thread paulk
This is an automated email from the ASF dual-hosted git repository.

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

commit adfcbc63a60c517dbb4cd5b739ff09df2c1c
Author: Paul King 
AuthorDate: Wed Aug 23 09:39:34 2023 +1000

GROOVY-11162: Bump Ant version to 1.10.14
---
 versions.properties | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/versions.properties b/versions.properties
index 4591759ff7..294fea74d0 100644
--- a/versions.properties
+++ b/versions.properties
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-ant=1.10.13
+ant=1.10.14
 asciidoctorj=2.5.10
 asciidoctorDiagram=2.2.8
 asciidoctorPdf=2.3.7