Re: WARNING: An illegal reflective access operation has occurred

2024-06-01 Thread Paul King
Do you have a small sample of Groovy code which when compiled triggers the warning? This is the kind of error we might expect when code is bending the rules for field access. It might be one of the cases we have fixed when running on later JDKs. It isn't necessarily a problem - it works fine when

Re: Sort on linkedlists with double values (inside main list)

2024-05-21 Thread Paul King
On Tue, May 21, 2024 at 3:13 PM M.v.Gulik wrote: > > After fixing my local bug I rechecked the "*.sort{ a, b -> a.y == b.y ? -a.y > <=> -b.y : a.x <=> b.x }" variant. > Same result/conclusion. In terms of referencing the properties, you'd want to swap the order you have above, i.e. you'd not

Re: Sort on linkedlists with double values (inside main list)

2024-05-21 Thread Paul King
, completely irrelevant to the original problem, just occurred > to me when I read this... > > On 20. 5. 2024, at 17:02, Paul King wrote: > println ([[x:1, y:100], [x:2, y:1], [x: 2, y:500]].sort{ a, b -> a.x == b.x > ? a.y <=> b.y : a.x <=> b.x }) // works > >

Re: Sort on linkedlists with double values (inside main list)

2024-05-20 Thread Paul King
e, May 21, 2024 at 12:52 AM Paul King wrote: > > If you have only two dimensions, you'll get away with your solution > for small integer coordinate values. Here is a counter example with > integers: > > println ([[x: 1, y: 69273666], [x: 69273666, y: 1]].sort{[it.x, > it.

Re: Sort on linkedlists with double values (inside main list)

2024-05-20 Thread Paul King
-> a.x == b.x ? a.y <=> b.y : a.x <=> b.x }) // works On Tue, May 21, 2024 at 12:25 AM M.v.Gulik wrote: > > > On Mon, 20 May 2024 at 15:40, Paul King wrote: >> >> What sort result are you trying to achieve? There should be no need to >> perform any recurs

Re: Sort on linkedlists with double values (inside main list)

2024-05-20 Thread Paul King
What sort result are you trying to achieve? There should be no need to perform any recursion. On Mon, May 20, 2024 at 11:36 PM M.v.Gulik wrote: > > Tried "*.sort{ a, b -> a.x == b.x ? a.y <=> b.y : a.x <=> b.x }" in the > actual source code so see its effect > And it turns out its not doing the

Re: Sort on linkedlists with double values (inside main list)

2024-05-20 Thread Paul King
The one argument closure variant of sort is expecting the closure to return a comparable. The values of any two items are sorted according to that comparable. ArrayLists aren't comparable. In that case the hashCode is used as a fallback for the comparison value. The hashCode for a Java array list

Re: Sort on linkedlists with double values (inside main list)

2024-05-19 Thread Paul King
I am not 100% sure what you are after. If you are wanting sort by x and then y, you just want something like this: sorttest.sort{ a, b -> a.x == b.x ? a.y <=> b.y : a.x <=> b.x } sorttest.sort{ a, b -> a.x == b.x ? b.y <=> a.y : b.x <=> a.x } // reverse of above On Mon, May 20, 2024 at 6:43 AM

Re: Unsupported class file major version 65 when running on java 21

2024-05-16 Thread Paul King
Our JDK version support is determined first and foremost by the version of ASM bundled by Groovy: JDK20 is supported from 4.0.6 JDK21 is supported from 4.0.11 JDK22 is supported from 4.0.16 JDK23 is supported from 4.0.21 On Fri, May 17, 2024 at 10:05 AM Daniel Sun wrote: > > Could you try the

Re: AST Transformation in Groovy 4.0.x VS 3.0.x

2024-04-14 Thread Paul King
Can you give us more of the stack trace where Groovy is failing for the "size==0" error? I would in general expect very few changes needed between 3 and 4. Groovy's built-in AST transforms had almost no changes. Cheers, Paul. On Sun, Apr 14, 2024 at 11:31 AM Adrien Guichard wrote: > > Is there

Re: [ANNOUNCE] Groovy 4.0.21 and 5.0.0-alpha-8 Windows installers released

2024-04-09 Thread Paul King
Thanks Keegan! On Wed, Apr 10, 2024 at 6:54 AM Keegan Witt wrote: > > Windows installers for Groovy 4.0.21 and 5.0.0-alpha-8 are now available. > > groovy-4.0.21.msi > groovy-5.0.0-alpha-8.msi > > -Keegan

[ANNOUNCE] Apache Groovy 4.0.21 released

2024-04-09 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.21 of Apache Groovy which includes support for running Groovy on JDK 23. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This

[ANNOUNCE] Apache Groovy 5.0.0-alpha-8 released

2024-04-08 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 5.0.0-alpha-8 of Apache Groovy which includes support for running Groovy on JDK 23. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website.

Re: making the most of Groovy in Action 2nd edition

2024-04-02 Thread Paul King
Hi Dimitar, >From Groovy 4, Groovy's "module" jars are fully-compliant with the JPMS rule disallowing split packages. The Groovy 3 and 4 release notes have more details. But basically, for the example you are showing, AntBuilder is now in the groovy.ant package, so if you add the appropriate

Re: SQL enhancement request (GROOVY-11342)

2024-03-31 Thread Paul King
On Sat, Mar 30, 2024 at 6:21 AM wrote: > Do you have any thoughts around when this enhancement might come out in a > release? Probably in the next couple of weeks pending feedback. Paul.

Re: SQL enhancement request (GROOVY-11342)

2024-03-28 Thread Paul King
y led me to Groovy since Groovy has a > smooth natural Java database driver integration. These developers ported > their skillsets over to Denodo from earlier Oracle/Teradata/SQLServer/MySQL > environments and have basically found Denodo to be a plug-n-play drop-in > replacement

Re: SQL enhancement request (GROOVY-11342)

2024-03-28 Thread Paul King
variant to execute() that adds > a metaClosure would be perfect, though I've really gotten comfortable with > the rows() method - not sure how it scales when resultSets go to billions of > rows though... I expect execute() would perform like a streaming interface > and not have

Re: SQL enhancement request

2024-03-25 Thread Paul King
Adding a metaClosure to execute seems the easiest change. I created GROOVY-11342 to track here: https://issues.apache.org/jira/browse/GROOVY-11342 Would the expectation be that the metaClosure is called for each result producing a ResultSet? Paul. On Sat, Mar 23, 2024 at 3:40 AM wrote: > >

Re: Odd behaviour of List to Map coercion within function arguments

2024-03-17 Thread Paul King
I am not sure I have the full history of when support started (at least 15+ years ago) but dynamic Groovy unwraps a list as arguments: def avg(int a, int b, int c) { (a + b + c)/3 } assert avg(1, 2, 3) == 2// normal invocation def nums = [10, 20, 30] assert avg(nums) == 20// args are a

[ANNOUNCE] Apache Groovy 5.0.0-alpha-7 Released

2024-03-13 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 5.0.0-alpha-7 of Apache Groovy. This is mostly to fix a minor glitch in the 5.0.0-alpha-6 zip distribution which affected users on some platforms (Maven jar artifacts weren't impacted) but also contains some additional fixes

[ANNOUNCE] Apache Groovy 4.0.20 Released

2024-03-13 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.20 of Apache Groovy. This is mostly to fix a minor glitch in the 4.0.19 zip distribution which affected users on some platforms (Maven jar artifacts weren't impacted) but also contains some additional fixes and dependency

[ANNOUNCE] Apache Groovy 3.0.21 Released

2024-03-01 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.21 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

[ANNOUNCE] Apache Groovy 4.0.19 Released

2024-03-01 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.19 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

[ANNOUNCE] Release Apache Groovy 5.0.0-alpha-6

2024-03-01 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 5.0.0-alpha-6 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This is a pre-release of a new version of Groovy. We

Re: Cannot process zip file with Groovy

2024-02-15 Thread Paul King
What you are doing to read the zip looks okay. Just a guess, but it could be that because you haven't written to the output stream, it is essentially a corrupt data stream as far as NiFi processing is concerned. What happens if you set "outputStream = inputStream" as the last line of your

Re: How to add a ssl server cert for groovy?

2024-02-15 Thread Paul King
Hi David, Groovy sits on top of the JDK, so if you install cacerts into the JDK you are using, then Groovy should use them just fine. Possibly there could be issues depending on what client library you are using to make the https connection. Cheers, Paul.

[ANNOUNCE] Apache Groovy 5.0.0-alpha-5 Released

2024-01-19 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 5.0.0-alpha-5 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This is a pre-release of a new version of Groovy. We

Re: Groovy on Windows 11, unable to resolve class

2024-01-19 Thread Paul King
Or do you already have GROOVY_HOME set but to somewhere else? Virus-free.www.avast.com

[ANNOUNCE] Apache Groovy 4.0.18 Released

2024-01-18 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.18 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

Re: CommunityOverCode EU CFP closing soon! See you in Bratislava!

2024-01-11 Thread Paul King
Last day today! Get your submissions in! Cheers, Paul. On Fri, Jan 5, 2024 at 3:50 PM Paul King wrote: > > Hi folks, > > Only a week to go to submit your Apache Groovy talks for > CommunityOverCode EU in Slovakia, June 2024. We welcome beginner, > intermediate and advanced t

Re: Strange behaviour when using the Grab annotation

2024-01-08 Thread Paul King
If you look up the Javadoc for Grab, you will see that it can be on more things than just an import. It can be on a type, a method, a field, a local variable and so forth. It can't be used on a single statement. The suggestion for placing it on an import statement is really just a suggestion. It

CommunityOverCode EU CFP closing soon! See you in Bratislava!

2024-01-04 Thread Paul King
Hi folks, Only a week to go to submit your Apache Groovy talks for CommunityOverCode EU in Slovakia, June 2024. We welcome beginner, intermediate and advanced talks. You can talk about Groovy or Groovy-related projects in the broader Groovy ecosystem. Since slots are limited at the conference,

[ANNOUNCE] Apache Groovy 3.0.20 Released

2023-12-21 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.20 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

[ANNOUNCE] Apache Groovy 4.0.17 Released

2023-12-21 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.17 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

[ANNOUNCE] Release Apache Groovy 5.0.0-alpha-4

2023-12-21 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 5.0.0-alpha-4 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This is a pre-release of a new version of Groovy. We

Re: Groovy 3.0.20 Release Date

2023-12-11 Thread Paul King
We are planning another release before the end of the year - I'll start discussions with the team. We'll make sure 3_0_X is included. It would be great if you can use a 3_0_X snapshot version and ensure that works with Grails. On Tue, Dec 12, 2023 at 2:00 AM Mattias Reichel wrote: > > Hello

[ANNOUNCE] Apache Groovy 5.0.0-alpha-3 Released

2023-11-29 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 5.0.0-alpha-3 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This is a pre-release of a new version of Groovy. We

[ANNOUNCE] Apache Groovy 4.0.16 Released

2023-11-29 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.16 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

Re:

2023-11-12 Thread Paul King
You seem to be wanting to access script bindings but are supplying an explicit class that isn't a script (doesn't extend Script). I'd just replace your script definition with this: final String SCRIPT = "println \"Hello ${foo}\""; Cheers, Paul.

Re: 3 > 4 regression

2023-11-01 Thread Paul King
Hmmm, it works with the alpha versions of Groovy 5. There must be a fix we didn't backport. A workaround (though shouldn't be needed) is to use an explicit qualifier, e.g.: "println Foo.wth". Did you want to create an issue? Thanks, Paul.

Re: Support for JDK 22-ea?

2023-10-17 Thread Paul King
Hi Francesco, We have already bumped to the version of ASM that supports JDK22 ea versions but haven't enabled the 22 constants just yet. I'll try to do that later this week. Feel free to create a Jira ticket if you'd like to track the activity. I haven't checked whether anything will be required

Re: Using variables in an embedded Groovy script

2023-09-27 Thread Paul King
hat you mean? I really have no idea, what you > mean. > > Thanks, > > Jochen > > > On 2023/09/25 15:07:28 Paul King wrote: > > You'd need to interleave the values from the GString. > > > > On Tue, Sep 26, 2023 at 12:43 AM Jochen Wiedmann > > wrote:

Re: Using variables in an embedded Groovy script

2023-09-25 Thread Paul King
You'd need to interleave the values from the GString. On Tue, Sep 26, 2023 at 12:43 AM Jochen Wiedmann wrote: > > Hi, > > can anyone advise me, what is wrong with the following code: I'd > expect it to write out the word "Okay". Instead, it throws the > exception "Unexpected result: Hello, !" >

[ANNOUNCE] Apache Groovy 4.0.15 Released

2023-09-14 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.15 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

[ANNOUNCE] Apache Groovy 5.0.0-alpha-2 Released

2023-09-14 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 5.0.0-alpha-2 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This is a pre-release of a new version of Groovy. We

Groovy turns 20!

2023-08-25 Thread Paul King
Happy Birthday to Groovy! After over 2 billion downloads, 240 releases, 4+ commits, and over 450 contributors, next Monday, Groovy turns 20!! Join a few of us (virtually) for a casual meet and greet to celebrate the occasion. This is a live interactive session where we'll chat about all

Community over Code Groovy track in Halifax

2023-08-25 Thread Paul King
Hi folks, We are very excited to be offering some great sessions in the Groovy track at the ASF's flagship NA conference Community over Code: https://communityovercode.org/schedule/ Come along and learn: * The latest details for Groovy 4 and 5 including what's happening with Groovy and

[ANNOUNCE] Apache Groovy 5.0.0-alpha-1 Released

2023-08-23 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 5.0.0-alpha-1 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This is the first pre-release of our next version of

[ANNOUNCE] Apache Groovy 2.5.23 Released

2023-08-22 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.23 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_5_X

[ANNOUNCE] Apache Groovy 3.0.19 Released

2023-08-22 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.19 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

[ANNOUNCE] Apache Groovy 4.0.14 Released

2023-08-22 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.14 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

Re: Indy churning through LambdaForm classes

2023-08-07 Thread Paul King
Yes, please create a ticket. On Mon, Aug 7, 2023 at 11:16 PM Gillespie, Oli wrote: > Hi Jochen, > > Thanks for looking, and for the findings - interesting! > > Actually I think my reproducer was not a good representation of the real > issue I saw in production. > I added the getName() call in

Community Over Code Groovy Track

2023-07-10 Thread Paul King
Hi, The deadline to submit talks to the Community Over Code conference is only a few days away and will not be extended. The CFP closes on July 13th. For the Groovy track, we are interested in topics relating to Groovy or projects within the broader ecosystem which use Groovy. Talks aimed at

Re: matcher is failing

2023-07-09 Thread Paul King
Yes, Spencer's info is correct. This script gives an example for a date in dd-mm-yy[yy] format: candidate = '14-06-2023' matcher = candidate =~ /(?x) # enable whitespace and comments ^ # start of line (0?[1-9]|[12]\d|3[01]) # capture day, e.g. 1, 01, 12, 30

Re: [ANNOUNCE] Apache Groovy 4.0.13 Released

2023-06-30 Thread Paul King
nrepository.com/artifact/org.apache.groovy/groovy-all ? > > On Thu, 29 Jun 2023 at 17:05, Paul King wrote: > >> Dear community, >> >> The Apache Groovy team is pleased to announce version 4.0.13 of Apache >> Groovy. >> Apache Groovy is a multi-faceted programming lan

[ANNOUNCE] Apache Groovy 3.0.18 Released

2023-06-29 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.18 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

[ANNOUNCE] Apache Groovy 4.0.13 Released

2023-06-29 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.13 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

Upcoming Groovy birthday

2023-06-27 Thread Paul King
Hi folks, In just 2 months time, Groovy turns 20. Who has some ideas on how to celebrate? I plan to release the first alpha for Groovy 5 by then and also write a "Using Groovy with JDK21" blog post, expanding on: https://groovy.apache.org/blog/groovy-sequenced-collections But these are almost

Re: Planned release date for 4.0.13?

2023-06-25 Thread Paul King
I am planning to prepare a 4.0.13 candidate for voting today or tomorrow. We have been held up by a Jfrog glitch which has delayed completion of our CI testing: https://status.gradle.com/incidents/7x4wqd7zv715 This is mostly fixed but there are still some artifacts like below which hasn't been

Community over code (formerly ApacheCon) CFP is closing soon

2023-06-19 Thread Paul King
Hi folks, Community Over Code (formerly @ApacheCon), the ASF's in-person conference, is October 7-10 in Halifax, Canada. Get your talks in now while the CFP is still open: https://communityovercode.org/call-for-presentations/ For the Groovy track, we are interested in topics relating to Groovy

Re: isGraalAvailable error

2023-06-10 Thread Paul King
; No. Not using GraalVM. > > This is code that ran fine on Java 8. The only change was switching to > Java 17. > > I am seeing the error reported elsewhere on the net, but no clear answer. > > Thanks. > > Blake > > On Sat, Jun 10, 2023 at 8:33 AM Paul King wrote: >

Re: isGraalAvailable error

2023-06-10 Thread Paul King
What is the actual error? Also, are you using GraalVM? Virus-free.www.avast.com

Re: Unable to properly tally all keys in nested json

2023-05-12 Thread Paul King
] > > Each key would have ten values in its value map, unless it cross-tabulates > to less than ten in total, in which case it will be sorted by count value > and all values accepted. > Again, many thanks. > Jim > > On Fri, May 12, 2023 at 2:19 AM Paul King wrote: > >> I

Re: Unable to properly tally all keys in nested json

2023-05-12 Thread Paul King
I am not 100% sure what you are trying to capture in topValuesMap but for tallyMap you probably want something like: def tallyMap = [:].withDefault{ 0 } def tally tally = { Map json, String prefix -> json.each { k, v -> if (v instanceof List) { tallyMap[prefix + k] += 1

[ANNOUNCE] Apache Groovy 4.0.12 Released

2023-05-08 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.12 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

Re: Extra linefeeds with groovy.xml.XmlUtil.serialize

2023-03-31 Thread Paul King
If you add ".normalize()", does that make any difference? I am trying to determine is there are CR chars in the output. Perhaps piping to od or some octal/hex dump program. There are also various parser options/features that might be different on different platforms. Does XmlSlurper exhibit the

[ANNOUNCE] Apache Groovy 4.0.11 Released

2023-03-30 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.11 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

[ANNOUNCE] Apache Groovy 3.0.17 Released

2023-03-30 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.17 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

[ANNOUNCE] Apache Groovy 2.5.22 Released

2023-03-30 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.22 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_5_X

Re: Planned release date for 2.5.22?

2023-03-21 Thread Paul King
The current plan is before the end of the month, probably next week. I don't think there is much more planned for that branch before release but we've only a handful of fixes on the 3_0_X and 4_0_X branches and we'll likely want to make a few more changes to one of those. We normally release a

[ANNOUNCE] Apache Groovy 4.0.10 Released

2023-03-12 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.10 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

[ANNOUNCE] Apache Groovy 3.0.16 Released

2023-03-11 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.16 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

Groovy blogs relocation

2023-02-17 Thread Paul King
Hi folks, The ASF infra team is encouraging folks to move away from the old roller blogging system. Groovy has moved our blog content into our website. You can find it here: https://groovy.apache.org/blog/ All the old content should redirect automatically to the new system but do let us know

[ANNOUNCE] Apache Groovy 4.0.9 Released

2023-02-08 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.9 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. OSGi Groovy 4 users should definitely upgrade to 4.0.9. This

[ANNOUNCE] Apache Groovy 3.0.15 Released

2023-02-08 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.15 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

[ANNOUNCE] Apache Groovy 4.0.8 Released

2023-01-22 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.8 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X branch

[ANNOUNCE] Apache Groovy 2.5.21 Released

2023-01-21 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.21 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_5_X

[ANNOUNCE] Apache Groovy 4.0.7 Released

2022-12-24 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.7 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

[ANNOUNCE] Apache Groovy 3.0.14 Released

2022-12-24 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.14 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

[ANNOUNCE] Apache Groovy 2.5.20 Released

2022-12-23 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.20 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_5_X

Re: [ANNOUNCE] Groovy 2.5.19 and 4.0.6 Windows installers released

2022-10-27 Thread Paul King
The bug with the anonymous login on the Jfrog mirror should be fixed now! Yeah! On Thu, Oct 20, 2022 at 3:32 PM Paul King wrote: > > If folks are trying to download those links and are taken to a login > page, just click on the (X) in the top right corner which will then do >

Re: [ANNOUNCE] Groovy 2.5.19 and 4.0.6 Windows installers released

2022-10-19 Thread Paul King
. Cheers, Paul. On Thu, Oct 20, 2022 at 3:30 PM Paul King wrote: > > Thanks Keegan! > > On Thu, Oct 20, 2022 at 3:20 PM Keegan Witt wrote: > > > > Windows installers for Groovy 2.5.19 and 4.0.6 are now available. > > > > 2.5.19: > > https://groovy.jfrog.io/u

Re: [ANNOUNCE] Groovy 2.5.19 and 4.0.6 Windows installers released

2022-10-19 Thread Paul King
Thanks Keegan! On Thu, Oct 20, 2022 at 3:20 PM Keegan Witt wrote: > > Windows installers for Groovy 2.5.19 and 4.0.6 are now available. > > 2.5.19: > https://groovy.jfrog.io/ui/native/dist-release-local/groovy-windows-installer/groovy-2.5.19/groovy-2.5.19.msi > > 4.0.6: >

[ANNOUNCE] Apache Groovy 4.0.6 released

2022-10-16 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.6 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

[ANNOUNCE] Apache Groovy 2.5.19 released

2022-10-15 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.19 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_5_X

[ANNOUNCE] Apache Groovy 3.0.13 Released

2022-09-18 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.13 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

[ANNOUNCE] Apache Groovy 4.0.5 Released

2022-09-09 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.5 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

Re: Google search results for Groovy give status 403 Forbidden

2022-07-27 Thread Paul King
low the page for new functionality. If anyone has knowledge in this area, please spread the word or dive on in with a PR. Cheers, Paul. On Wed, Jul 27, 2022 at 7:20 PM Alexander Veit wrote: > > Am 27.07.22 um 10:13 schrieb Paul King: > > Should be fixed now. Thanks for spotting that.

Re: Google search results for Groovy give status 403 Forbidden

2022-07-27 Thread Paul King
Should be fixed now. Thanks for spotting that. On Wed, Jul 27, 2022 at 5:20 PM Alexander Veit wrote: > > Hi, > > currently I receive lots of 403 errors when following links in Google search > results. > > E.g. https://docs.groovy-lang.org/docs/next/html/documentation/ > > - Alex

Re: Defining functions in text processed by the StreamingTemplateEngine

2022-07-23 Thread Paul King
The SimpleTemplateEngine supports methods (and imports and even local class definitions): def text = """\ <% import java.time.LocalDate import java.time.format.TextStyle def now = LocalDate.now() def dayName(theDate) { theDate.dayOfWeek.getDisplayName(TextStyle.FULL, Locale.default) } class

[ANNOUNCE] Apache Groovy 4.0.4 Released

2022-07-23 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 4.0.4 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_4_0_X

[ANNOUNCE] Apache Groovy 3.0.12 Released

2022-07-22 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.12 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_3_0_X

[ANNOUNCE] Apache Groovy 2.5.18 Released

2022-07-22 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.18 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the https://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_5_X

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Paul King
wn bug, I decided to go with Jackson Jr, which also allows me to parse >> JSON into a Map structure. But since I'm coding entirely in Groovy using >> Groovys JSON support would make sense, but the pointed out bug scared me >> away :-). I have used Jackson Jr before, it works

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Paul King
o allows me to parse >> JSON into a Map structure. But since I'm coding entirely in Groovy using >> Groovys JSON support would make sense, but the pointed out bug scared me >> away :-). I have used Jackson Jr before, it works well. >> >> /Tommy >> >> >>

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Paul King
Hi Tommy, I wrote a little blog post that might have some of the information you were missing: https://blogs.apache.org/groovy/entry/parsing-json-with-groovy Perhaps some more of that info belongs in the official documentation. Cheers, Paul. On Fri, Jul 8, 2022 at 9:10 PM Tommy Svensson

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-08 Thread Paul King
Just some points of clarification. * JsonSlurper isn't a static class - no change with respect to its definition has been made across Groovy3 and 4 apart from the package renaming to comply with the JPMS split packaging requirements for JDK9+. * JsonSlurper doesn't parse into an

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-08 Thread Paul King
Hi Tommy, if you add the groovy-json module to your dependencies, you should be good to go. The groovy-all dependency is a pom dependency. How to use a pom dependency differs between build tools. Generally, just telling your build tool it's a pom might be enough for things to start working again

Re: Type inference runtime error

2022-06-15 Thread Paul King
The key aspect for that example is in the preceding paragraph "When code is annotated with @TypeChecked". If you had those three lines in a script called Upper.groovy, you could try: > groovy --compile-static Upper.groovy Or in the groovyConsole, you could try something like this:

Re: [ANNOUNCE] Groovy 2.5.17, 3.0.11, and 4.0.3 Windows installers released

2022-06-05 Thread Paul King
Nice work Keegan! On Mon, Jun 6, 2022 at 8:51 AM Keegan Witt wrote: > > Windows installers for Groovy 2.5.17, 3.0.11, and 4.0.3 are now available. > > 2.5.17: > https://groovy.jfrog.io/ui/native/dist-release-local/groovy-windows-installer/groovy-2.5.17/groovy-2.5.17.msi > 3.0.11: >

  1   2   3   4   5   >