[ANNOUNCE] Apache Groovy 3.0.0-beta-1 Released

2019-05-10 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.0-beta-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 a pre-release of a new version of Groovy. We

[ANNOUNCE] Apache Groovy 2.5.7 Released

2019-05-10 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.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_2_5_X

[ANNOUNCE] Apache Groovy 2.4.17 Released

2019-05-10 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.4.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_2_4_X

Re: GroovyDoc classloader issue

2019-05-07 Thread Paul King
Belostotskiy wrote: > Hi, > Did you get a chance to test it? > > 26.02.2019, 00:24, "Paul King" : > > Hi Alexey, the attachment came through. I just haven't had time to test it > yet. Thanks! > > Cheers, Paul. > > On Tue, Feb 26, 2019 at 1:20 AM Al

Re: Static imports seem to win over a method in closure's delegate

2019-04-12 Thread Paul King
Using import aliases can be a good workaround for such a case. On Sat, Apr 13, 2019 at 4:58 AM Jochen Theodorou wrote: > On 10.04.19 16:05, Herrendorf Johannes wrote: > > Hi Groovy users, > > > > I’m currently building a DSL in groovy and found some strange behaviour > > I have no explanation

Re: groovy.text.markup.MarkupTemplateEngine issue since 2.5.3

2019-03-29 Thread Paul King
Hi, It does look vaguely familiar as a regression we are currently looking into related to "train wreck" style expressions, e.g. "a.b.c.d.e", inside nested closures. The workaround might be to simplify your expressions until we get that fixed. There are a couple of related issues but none exactly

Re: groovyscript and binding, what is wrong in this code

2019-03-20 Thread Paul King
ra4" ] def zebras = (1..2).collect { this."zebra_${'test' + it}_list" } assert zebras == [['zebra1', 'zebra2'], ['zebra3', 'zebra4']] Cheers, Paul. On Thu, Mar 21, 2019 at 10:00 AM Paul King wrote: > You probably want to use the binding and just normal script evalua

Re: groovyscript and binding, what is wrong in this code

2019-03-20 Thread Paul King
You probably want to use the binding and just normal script evaluate rather than Eval.me which is designed for when you don't want the full binding. zebra_test1_list = [ 'zebra1', 'zebra2' ] zebra_test2_list = [ 'zebra3', 'zebra4' ] def zebras = (1..2).collect { evaluate("zebra_${'test' +

shell scripts tweaks

2019-03-17 Thread Paul King
Hi folks, Thanks to a contribution from Dylan Cali, the startup shell scripts have been tweaked to be shellcheck[1] compliant. We have done a bit of manual testing but if anyone (especially any cygwin/msys users) wants to do more extensive checks that everything is behaving as expected, that

Re: Friends of Groovy Open Collective

2019-03-12 Thread Paul King
We are following the open collective policy where core committers (of the collective) are the ones who can approve expense submissions. I expect we will grow the number of core committers over time. At some point, I imagine it would be nice to describe a process for deciding fees/bounties and

Friends of Groovy Open Collective

2019-03-07 Thread Paul King
Hi everyone, As an independent initiative, we have set up an open collective for Groovy: https://opencollective.com/friends-of-groovy This initiative is designed to complement the Apache project and the many contributions we get from our great community and supporters. Rationale: The Apache

Re: GroovyDoc classloader issue

2019-02-25 Thread Paul King
.2019, 17:34, "Alexey Belostotskiy" : > > Hi, it's kind of messy, but I hope you'll get the idea. > > 19.02.2019, 23:48, "Paul King" : > > Our preference would be to have a standalone testcase that triggers your > problem. Are you in a position to create su

Re: GroovyDoc classloader issue

2019-02-19 Thread Paul King
Our preference would be to have a standalone testcase that triggers your problem. Are you in a position to create such a test? On Wed, Feb 20, 2019 at 1:24 AM Alexey Belostotskiy wrote: > Hello, > > We're generating groovydocs in runtime in our app. We use groovydoc as a > library, not

Re: Groovy file associations on Windows

2019-02-10 Thread Paul King
I'd be inclined to keep GPars in the mix for now. It isn't actively maintained but is still very useful in its current form and I hope to put some time into it at some stage. Cheers, Paul. On Mon, Feb 11, 2019 at 12:24 PM Keegan Witt wrote: > In addition to removing projects that are no

Re: [ANNOUNCE] Groovy 2.5.6 Windows Installer Released

2019-02-08 Thread Paul King
Nice. Thanks Keegan! On Fri., 8 Feb. 2019, 1:26 pm Keegan Witt The Windows installer for Groovy 2.5.6 is available from the usual place: > https://bintray.com/groovy/Distributions/Windows-Installer/groovy-2.5.6-installer > . > > -Keegan >

Re: AST Transformation Issues

2019-02-05 Thread Paul King
Hi, With regard to stack overflow when printing. This is a known limitation. ToString has been made smart enough to handle self references, e.g. import groovy.transform.* @ToString class Tree { Tree left, right } def t1 = new Tree() t1.left = t1 println t1

Re: Gant is to be deleted, or will someone preserve it?

2019-02-04 Thread Paul King
+1 to archiving it. I am happy for you to add my name as a maintainer if that helps. On Sat, Feb 2, 2019 at 5:29 PM Russel Winder wrote: > Hi, > > Way back in 2006, Gant was an experiment in scheduling Ant tasks and > attempted > to be a build system. Hans Dockter experiment a lot with it, but

[ANNOUNCE] Apache Groovy 2.5.6 released

2019-02-04 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.6 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_5_X branch.

Re: [PROPOSAL]About creating open collective for Groovy programming language in the name of Groovy Community

2019-01-08 Thread Paul King
On Tue, Jan 8, 2019 at 6:35 PM Daniel Sun wrote: > Hi Paul, > > > (1) Since we don't use the "groovy/groovy-core" repo any longer, I don't > > think that is the correct one to use but rather "apache/groovy". > > As you said in (2), `According to official Apache policy, the ASF > doesn't

Re: [ANNOUNCE] Groovy 3.0.0-alpha-4 Windows Installer Released

2018-12-30 Thread Paul King
Thanks Keegan! For anyone interested, you should be able to use snapshot versions of Spock with Groovy 3.0.0. On Mon, Dec 31, 2018 at 11:39 AM Keegan Witt wrote: > The Windows installer for Groovy 3.0.0-alpha-4 is available from the > usual place: >

[ANNOUNCE] Apache Groovy 3.0.0-alpha-4 released

2018-12-30 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.0-alpha-4 of Apache Groovy. We expect this to be the last "alpha" release of Groovy 3.0.0 as we shift our focus to releasing this next version of Groovy. 2018 was an exciting year for Groovy with download numbers going

[ANNOUNCE] Apache Groovy 2.5.5 released

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

Re: What is the best replacement for running scripts using groovy-all?

2018-12-19 Thread Paul King
We don't want to publish a fat jar to maven because it will cause problems that we will continually be asked about but perhaps having an uber jar within the zip distribution might be something we could look at. I suspect over time though that even that could be problematic. On Thu, Dec 20, 2018

[ANNOUNCE] Apache Groovy 2.4.16 released

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

Re: [ANNOUNCE] Apache Groovy 2.5.4 released

2018-11-12 Thread Paul King
ovy-2-5-4-released >> >> Please share on social media. >> >> On Monday, November 12, 2018, Paul King wrote: >> >>> Dear community, >>> >>> The Apache Groovy team is pleased to announce version 2.5.4 of Apache >>> Groovy. >>&g

[ANNOUNCE] Apache Groovy 2.5.4 released

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

Re: Calling 'each' on org.eclipse.emf.common.util.TreeIterator

2018-10-16 Thread Paul King
I'd expect that to work the same as if you used a while loop with hasNext() and next(). If your data structure has further containers and next() doesn't normally walk through the containers, then I'd expect you to have more work to do. Is that not what you are seeing? Cheers, Paul. On Tue, Oct

Re: GMavenPlus 1.6.2 Released

2018-10-14 Thread Paul King
Excellent work! On Mon, Oct 15, 2018 at 6:29 AM Keegan Witt wrote: > GMavenPlus 1.6.2 has been released to Sonatype OSS > and should appear > in Maven Central shortly. > Bugs > >- Support for Java 10 bytecode

Re: [ANNOUNCE] Groovy 2.5.3 Windows Installer Released

2018-10-14 Thread Paul King
That was quick! Thanks! On Mon, Oct 15, 2018 at 6:32 AM Keegan Witt wrote: > The Windows installer for Groovy 2.5.3 is available from the usual place: > https://bintray.com/groovy/Distributions/Windows-Installer/groovy-2.5.3-installer > . >

[ANNOUNCE] Apache Groovy 2.5.3 Released

2018-10-14 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.3 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_5_X branch.

Re: @Immutable backwards compatibility

2018-10-13 Thread Paul King
On Sun, Oct 14, 2018 at 1:41 AM Daniel.Sun wrote: > Hi Cédric, > > > However, we discovered several regressions (in @CompileStatic, in > > covariant return type checking, ...) that may make the migration > painful. > According to the changed files shown in the PR ( >

Re: @Immutable backwards compatibility

2018-09-27 Thread Paul King
I'll move this to the dev list. On Thu, Sep 27, 2018 at 10:26 PM Jochen Theodorou wrote: > > > Am 27.09.2018 um 01:24 schrieb Paul King: > > The String check for "groovy.transform.Immutable" would work fine if the > > 2.4 compiled class was actual

Re: @Immutable backwards compatibility

2018-09-26 Thread Paul King
AM Jochen Theodorou wrote: > On 26.09.2018 12:58, Paul King wrote: > > I shouldn't try to respond to emails while rushing between conference > > sessions. Refreshed my memory and yes, the current provisions for 2.4 > > compatibility don't really help. I'll see if Jochen has

Re: @Immutable backwards compatibility

2018-09-26 Thread Paul King
I shouldn't try to respond to emails while rushing between conference sessions. Refreshed my memory and yes, the current provisions for 2.4 compatibility don't really help. I'll see if Jochen has some ideas on how we could improve that. On Wed, Sep 26, 2018 at 12:01 PM Paul King wrote: > I

Re: Long String concatenation failed

2018-09-26 Thread Paul King
Yes, done. On Wed, Sep 26, 2018 at 2:54 PM Jmeter Tea wrote: > Paul King: Thank you, I can live with a workaround of adding a line > continuation slash at the end of the line > Can you answer the original question in stackoverflow > <https://stackoverflow.com/questions/4778639

Re: @Immutable backwards compatibility

2018-09-25 Thread Paul King
I'll have to look a little more closely. There is some provision for handling backwards compatibility. The string value of the class name of Annotations is compared with "groovy.transform.Immutable", which will handle some cases but we've removed the annotation attributes like knownClasses so that

Re: Long String concatenation failed

2018-09-25 Thread Paul King
Groovy uses the end of line as the statement terminator unless it can safely tell that the next line should follow on. We didn't allow plus or minus on the next line when working out the list of things to safely accept since it would have been a breaking change for anyone using the unaryPlus or

Re: @CompileStatic void method returns null ?

2018-09-03 Thread Paul King
Calling void methods is fine. Expecting a result is the point in question. For dynamic Groovy, you can't always tell which case you have: class Foo { def bar() { 42 } void baz() { } } def method(boolean condition, delegate, meth1, meth2) { if (condition) delegate."$meth1"() else

Re: @MapConstructor + @CompileStatic on Static Inner Class => CTE

2018-09-03 Thread Paul King
Please create an issue. VerifyError is always a bug. On Tue, Sep 4, 2018 at 4:55 AM MG wrote: > The following code using @MapConstructor on a static inner class raises > a compile time error (see end of mail; different error when making the > inner class non-static): > > import

Re: Groovy 2.5.* missing in maven central & jcenter

2018-09-01 Thread Paul King
Depending on what you are trying to do, you might get some way with 2.4.x on JDKs above 8 but 2.5 and 3 alphas have improvements and fixes in some areas. You might still get certain currently benign warnings even with those versions. Re packaging, please read the info in the release notes about

Re: @CompileStatic void method returns null ?

2018-08-29 Thread Paul King
See also: https://issues.apache.org/jira/browse/GROOVY-8770 Which I presume was also to mimick dynamic behavior. Cheers, Paul. On Wed, Aug 29, 2018 at 4:42 AM Jochen Theodorou wrote: > On 28.08.2018 19:45, mg wrote: > > Since I just stumbled across this behavior while helping a junior > >

Re: [ANNOUNCE] Groovy 2.5.2 Windows Installer Released

2018-08-18 Thread Paul King
Thanks Keegan. I added it to the download page. On Sat, Aug 18, 2018 at 3:14 PM Keegan Witt wrote: > The Windows installer for Groovy 2.5.2 is available from the usual place: > https://bintray.com/groovy/Distributions/download_file?file_path=groovy-2.5.2-installer.exe > . >

[ANNOUNCE] Apache Groovy 2.5.2 Relased

2018-08-14 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.2 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_5_X branch.

Re: multi-declaration does not work in the for loop, groovy 2.4

2018-08-06 Thread Paul King
Yes, that is by design for 2.4.x, you'll have to bring one of the declarations outside the loop or use one of the many internal iteration approaches. The Parrot parser handles that syntax. On Mon, Aug 6, 2018 at 11:37 PM ocs@ocs wrote: > Hi there, > > I have just bumped into a — presumably —

Re: Groovy with OpenJDK 10 and IntelliJ Build - Solved

2018-07-30 Thread Paul King
The CORBA dependency is nothing to do with Groovy as you point out. A minor clarification about JAXB. Other Groovy 2.5.0 users on JDK9+ might also need the JAXB dependency (or a --add-modules switch) but from Groovy 2.5.1 that module is optional and only users of the groovy-jaxb extensions should

Re: Groovy and JDK 11: Compilation issue

2018-07-30 Thread Paul King
an edge case that we haven't seen yet or it might be something we need to pass on to the ASM project. Cheers, Paul. On Tue, Jul 31, 2018 at 5:18 AM Paul King wrote: > We use ASM 6.2 with the ASM API version set to ASM6 in Groovy 2.5.1. > We use ASM 6.2 with the ASM API version set to ASM7_

Re: Groovy and JDK 11: Compilation issue

2018-07-30 Thread Paul King
We use ASM 6.2 with the ASM API version set to ASM6 in Groovy 2.5.1. We use ASM 6.2 with the ASM API version set to ASM7_EXPERIMENTAL in Groovy 3 alphas. As per ASMs current strategy (archive protected by a spambot link - click through and follow date):

Re: Groovy 2.5.1 array issue

2018-07-26 Thread Paul King
We took the opportunity with 2.5 to fix a long-known difference in behavior between Java and Groovy. It is listed in the release notes as a breaking change. (Basically if you always stick with just the stack methods (push/pop) or just the list methods (most other operations) you will be okay but

[ANNOUNCE] Apache Groovy 2.5.1 released

2018-07-13 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.1 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the http://groovy.apache.org website. For this release we focused on fixing up some of the

Re: [ANN] Announcing CodeNarc 1.2

2018-07-09 Thread Paul King
Fantastic to see a new release! Thanks. On Tue, Jul 10, 2018 at 4:46 AM wrote: > The *CodeNarc** Team *is proud to announce the release of version *1.**2*. > > *CodeNarc* is a static analysis tool for Groovy > source code. > > Version *1.**2* includes 5 new rules and

Re: [ANNOUNCE] Groovy 3.0.0-alpha-3 Windows Installer Released

2018-07-09 Thread Paul King
Nice work! Thanks! On Mon, Jul 9, 2018 at 3:41 AM Keegan Witt wrote: > The Windows installer for Groovy 3.0.0-alpha-3 is available from the usual > place: > https://bintray.com/groovy/Distributions/Windows-Installer/groovy-3.0.0-alpha-3-installer > . >

Re: About the groovy code style

2018-07-04 Thread Paul King
Comment inline. On Tue, Jul 3, 2018 at 10:31 PM Jochen Theodorou wrote: > > > Am 03.07.2018 um 04:44 schrieb Daniel.Sun: > > Hi all, > > > > The following code is supported in the older parser, but I propose > to > > stop supporting the ugly code style in the new Parrot parser. Any >

Re: Groovy with OpenJDK 10 and IntelliJ Build

2018-07-03 Thread Paul King
Does the JDK you run Intellij under need to be the same as what your project settings point to? On Wed, Jul 4, 2018 at 9:28 AM MG wrote: > Hi, > > does anyone allready have experience compiling a Groovy project under > IntelliJ and OpenJDK 10 ? > We are currently using OpenJDK 8 and would need

Groovy 2.5.1 planning

2018-07-03 Thread Paul King
Hi everyone, Even though I still have plenty of bugs on my "would like to fix before next release" list, I'd like to release a 2.5.1 fairly soon. This is mostly to do with 2.5.0 inadvertently breaking our OSGi support [1] but also based on usability feedback I have moved Groovy's recently

Re: About the groovy code style

2018-07-02 Thread Paul King
I think it is worth reviewing some of these edge cases but we want to keep the overall conceptual model describing the parser behavior (i.e. parser rules) as simple as possible. Here is my understanding of the rules for the classic parser. Java supports a fluent api style such as: String

[ANNOUNCE] Apache Groovy 3.0.0-alpha-3 released

2018-06-26 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.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 http://groovy.apache.org website. This is a pre-release of a new version of Groovy. We

[ANNOUNCE] Apache Groovy 2.6.0-alpha-4 released

2018-06-26 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.6.0-alpha-4 of Apache Groovy. This is the last planned release in the 2.6 stream of releases. The Groovy 2.6 stream of releases was created as a cut-down version of Groovy 3.0 back-ported to JDK7 but with features requiring

Re: [DISCUSS] Groovy 2.6 potential retirement to focus on Groovy 3.0

2018-06-22 Thread Paul King
n 13, 2018 at 12:06 AM Paul King wrote: > >> >> Hi everyone, >> >> There was some discussion at gr8conf about how to speed up delivery of >> Groovy 3.0. Some of that discussion was around the scope of what we want to >> include and have yet to complete in 3.0

Re: GraalVM/Truffle ?

2018-06-14 Thread Paul King
patible with Groovy due to extensive use of reflection. > > > > Jason > > > > *From:* Paul King [mailto:pa...@asert.com.au] > *Sent:* Thursday, June 14, 2018 4:30 AM > *To:* users@groovy.apache.org > *Subject:* Re: GraalVM/Truffle ? > > > > Running numerous

Re: GraalVM/Truffle ?

2018-06-14 Thread Paul King
Running numerous scripts on GraalVM worked fine for me and was only slightly slower in my tests than the standard Oracle JVM. I haven't done extensive testing though. As for actually leveraging any special GraalVM capabilities, I am not aware of any completed work/concrete plans to date. As for

Re: [DISCUSS] Groovy 2.6 potential retirement to focus on Groovy 3.0

2018-06-13 Thread Paul King
On Wed, Jun 13, 2018 at 5:11 PM, David Dawson < david.daw...@simplicityitself.com> wrote: > I would vote 2. > > Actually, i would vote 3) abandon 2.6 immediately. > We identified a few major things that were broken in the previous alpha release of 2.6 but only due to trivial packaging issues,

Re: [DISCUSS] Groovy 2.6 potential retirement to focus on Groovy 3.0

2018-06-13 Thread Paul King
On Wed, Jun 13, 2018 at 10:11 PM, Corum, Michael wrote: > If 3.0 will still support JDK8, I’d vote for option 3 as well. If 3 will > require 9, then maybe option 2. > > > Groovy 3.0 has JDK8 as minimum. Cheers, Paul.

[DISCUSS] Groovy 2.6 potential retirement to focus on Groovy 3.0

2018-06-13 Thread Paul King
Hi everyone, There was some discussion at gr8conf about how to speed up delivery of Groovy 3.0. Some of that discussion was around the scope of what we want to include and have yet to complete in 3.0 but I won't discuss that right now. One of the other discussion points was Groovy around 2.6. As

[ANNOUNCE] Apache Groovy 2.5.0 released

2018-05-30 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.0 of Apache Groovy! Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. We are sure you'll enjoy the features in this new version of

Re: Groovy 2.5.0 IntelliJ support ?

2018-05-29 Thread Paul King
Actually, we still have more work to do in Groovy's compiler for @NamedParam too. On Tue, May 29, 2018 at 8:21 PM, Daniel.Sun wrote: > Thanks for your nice work! > > Cheers, > Daniel.Sun > > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html >

Re: does 2.5 break CliBuilder?

2018-05-25 Thread Paul King
Do you have a standalone example which triggers the error, i.e. with map and config already set? That will save us time reproducing. Cheers, Paul. On Sat, May 26, 2018 at 2:59 AM, Nelson, Erick wrote: > Caught: groovy.lang.ReadOnlyPropertyException: Cannot set

Re: [ANNOUNCE] Apache Groovy 2.5.0-rc-3 released

2018-05-22 Thread Paul King
ges since 2.4, to evaluate if/where > any issues are with backwards compatibility? > > Jason Winnebeck > > -Original Message- > From: Paul King [mailto:pa...@apache.org] > Sent: Tuesday, May 22, 2018 12:03 PM > To: d...@groovy.apache.org; users@groovy.apache.o

[ANNOUNCE] Apache Groovy 2.5.0-rc-3 released

2018-05-22 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.0-rc-3 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. Pending any last minute feedback we anticipate this being the

Re: groovysh problem in Groovy 2.5.0-rc-2

2018-05-08 Thread Paul King
That isn't supposed to happen and should be fixed in rc-3. We are making some changes that didn't quite get finished for rc-2. Command-line processing is in a semi-stable state right now and testing of groovysh slipped through the cracks. The groovysh tests currently run against the pre jarjar'd

[ANNOUNCE] Apache Groovy 2.5.0-rc-2 released

2018-05-05 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.0-rc-2 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This is a pre-release of a new version of Groovy. We greatly

Re: [FYI] Hadoop and Spark examples in Groovy

2018-05-03 Thread Paul King
Nice work Daniel! On Thu, May 3, 2018 at 7:09 PM, Daniel.Sun wrote: > Hi all, > >Here are Hadoop example[1] and Spark example[2] in Groovy for your > reference. > >As you can see, Groovy can work very well with the big data > frameworks. Even if Spark is

Re: [Poll] About supporting Java-like array

2018-04-30 Thread Paul King
roovy [...] list literal syntax instead. > > I think we should decide if that is something we want to do in general, or > not. My argument for it is, to avoid Groovy becoming a > Babylonian-syntax-language like e.g. Ruby... > > Cheers, > mg > > > > > >

Re: [Poll] About supporting Java-like array

2018-04-29 Thread Paul King
That sounds like a limitation we'd like to remove when using @CompileStatic. Want to create a Jira? Cheers, Paul. On Mon, Apr 30, 2018 at 12:39 PM, MG wrote: > Hi Daniel, > > I did a quick check and it works with dynamic Groovy, but is rejected > under static compilation: >

Re: [Poll] About supporting Java-like array

2018-04-29 Thread Paul King
Ursprüngliche Nachricht > Von: Paul King <pa...@asert.com.au> > Datum: 30.04.18 00:29 (GMT+01:00) > An: users@groovy.apache.org > Betreff: Re: [Poll] About supporting Java-like array > > The preferred Groovy syntax would probably still remain: > > in

Re: [Poll] About supporting Java-like array

2018-04-29 Thread Paul King
gh > less pronounced, since using/initializing arrays is typically rare). > > 4) I am not too worried about the breaking edge cases, because I feel they > are quite rare in practice, the compiler catches them, and they are easy to > fix. > > Cheers, > mg > > >

Re: [Poll] About supporting Java-like array

2018-04-29 Thread Paul King
dge cases, because I feel they > are quite rare in practice, the compiler catches them, and they are easy to > fix. > > Cheers, > mg > > > > > On 29.04.2018 15:29, Paul King wrote: > > +1 > > For completeness, I added some more details about the breaking cha

Re: [Poll] About supporting Java-like array

2018-04-29 Thread Paul King
+1 For completeness, I added some more details about the breaking changes and workarounds into the issue - included below for easy reading. Cheers, Paul. = Groovy currently "promotes" a singleton instance of an object into an array for assignments, e.g.: Integer[] nums = 42

Re: Java does not see method implemented in Groovy

2018-04-23 Thread Paul King
A bit of a long shot but does compiling the class by hand (outside gradle) make any difference? On Mon, Apr 23, 2018 at 8:05 PM, Schalk Cronjé wrote: > Hi all, > > I have build an hierarchy that effectively looks like: > > Abstract Base #1 (Java) > ^ >

Re: [ANNOUNCE] Apache Groovy 3.0.0-alpha-2 released

2018-04-17 Thread Paul King
Nice work Daniel! On Tue, Apr 17, 2018 at 3:35 PM, 孙 岚 wrote: > Dear community, > > The Apache Groovy team is pleased to announce version 3.0.0-alpha-2 of > Apache Groovy. > Apache Groovy is a multi-facet programming language for the JVM. > Further details can be found at the

Re: [ANNOUNCE] Groovy 2.5.0-rc-1 Windows Installer Released

2018-04-15 Thread Paul King
Thanks Keegan! On Mon, Apr 16, 2018 at 5:34 AM, Keegan Witt wrote: > The Windows installer for Groovy 2.5.0-rc-1 is available from the usual > place: https://bintray.com/groovy/Distributions/Windows- > Installer/groovy-2.5.0-rc-1-installer > > -Keegan >

Re: [ANNOUNCE] Apache Groovy 2.5.0-rc-1 released

2018-04-09 Thread Paul King
re now, the notes are pretty > useless as it doesn't indicate what changes from the last major release. > > WDYT? > > 2018-04-09 8:07 GMT+02:00 Paul King <pa...@apache.org>: > >> Dear community, >> >> The Apache Groovy team is pleased to announce version

[ANNOUNCE] Apache Groovy 2.5.0-rc-1 released

2018-04-09 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.0-rc-1 of Apache Groovy. Apache Groovy is a multi-faceted programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This is a pre-release of a new version of Groovy. We greatly

Re: [ANNOUNCE] Groovy 2.6.0-alpha-3 Windows Installer Released

2018-03-30 Thread Paul King
Nice work on all those installers Keegan! On Fri, Mar 30, 2018 at 11:17 PM, Keegan Witt wrote: > The Windows installer for Groovy 2.6.0-alpha-3 is available from the > usual place: https://bintray.com/groovy/Distributions/download_ >

Re: Why does Groovy's CliBuilder depend on apache commons-cli, which isn't included in groovy-all?

2018-03-29 Thread Paul King
The groovy-all jar doesn't bundle Groovy's optional dependencies such as: ant, junit, bsf, commons-logging, log4j, jline, testng, xstream, commons-cli, jansi, ivy, etc. It includes all of Groovy's modules and embeds a small set of required dependencies for its own internal purposes like asm and

[ANNOUNCE] Apache Groovy 2.4.15 released

2018-03-27 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.4.15 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_4_X branch.

Re: JDK 10: Use of var over def?

2018-03-25 Thread Paul King
ils (as expected) with "Cannot assign value of type Integer > to variable of type Main"//y = new Integer(3); // <=== error: > incompatible types: Integer cannot be converted to Main} > > Cheers, > mg > > > > > On 24.03.2018 13:08, Paul King wrote: > > I don't

Re: JDK 10: Use of var over def?

2018-03-24 Thread Paul King
e time fails with "Groovyc: [Static type checking] - Cannot find > matching method groovy.GroovyGeneralSpike$Foo#sonOfFooMethod()." if(f > instanceof SonOfFoo) { > println f.sonOfFooMethod() // works because of flow typing } > } > > Cheers, > mg > > &g

Re: JDK 10: Use of var over def?

2018-03-23 Thread Paul King
The Parrot parser already has support for this at the grammar level but we regard some of the current implementation details as experimental. At the moment it is almost just an alias for "def" but discussions have been around whether we can make the behavior closer to Java when used within static

Re: Groovy 3 lambda, method reference, default methods

2018-03-22 Thread Paul King
Currently, you can switch off the Antlr parser in Groovy 3.0 by setting the antlr4 switch to false. We might deem that an implementation detail rather than a supported feature. In any case, we will likely drop that fairly soon, e.g. Groovy 3.1 (unplanned version number but assuming that's the next

Re: Upgrade Groovy jar - can't start tomcat

2018-03-21 Thread Paul King
The ASM 6 jar has a module-info.class file that gets incorporated into our jar via jarjar. We obviously should exclude that in our build and we do. We originally only had that build fix for 2_5_X and above builds because we didn't want to bump ASM version in a point release - but that change was

Re: traits fields initialization order ?

2018-03-10 Thread Paul King
There is a known bug in trait initialization for final fields: https://issues.apache.org/jira/browse/GROOVY-8281 It's on my list to fix before 2.5.0 final. Happy for any assistance. Cheers, Paul. On Sun, Mar 11, 2018 at 6:37 AM, MG wrote: > Hi, > > I recently refactored

Re: Unexpected compilation error with 2.4.14

2018-03-06 Thread Paul King
I created https://issues.apache.org/jira/browse/GROOVY-8494 to track this. Cheers, Paul. On Wed, Mar 7, 2018 at 10:34 AM, Paul King <pa...@asert.com.au> wrote: > Okay, I can reproduce now on 2.4.14 and latest 2_4_X using 1.8.0_161. > No problem on that JVM version with 2.5.0-bet

Re: Unexpected compilation error with 2.4.14

2018-03-06 Thread Paul King
Okay, I can reproduce now on 2.4.14 and latest 2_4_X using 1.8.0_161. No problem on that JVM version with 2.5.0-beta-3 or 2_5_X with the cherry-picked change or 2.6.0-alpha-3 or master. Cheers, Paul. On Wed, Mar 7, 2018 at 10:13 AM, Paul King <pa...@asert.com.au> wrote: > I used

Re: Unexpected compilation error with 2.4.14

2018-03-06 Thread Paul King
I used 1.8.0_161 but so far have only pasted the problematic line into Groovy Console and run it. Jochen, your change did seem to be missing on 2_5_X but was on the other branches. I just cherry picked it onto 2_5_X. I think we need to close off GROOVY-8338 and clone a new issue with a new

Re: Unexpected compilation error with 2.4.14

2018-03-06 Thread Paul King
Looks weird. We should never get a VerifyError, so worth raising a bug. That line by itself seems to work okay in a script. I won't get time until tomorrow to replicate properly. Someone else might jump in in the meantime. Cheers, Paul. On Tue, Mar 6, 2018 at 10:23 PM, Andres Almiray

Re: [ANNOUNCE] Apache Groovy 2.6.0-alpha-3 released

2018-03-05 Thread Paul King
Nice work Daniel! On Tue, Mar 6, 2018 at 1:19 PM, 孙 岚 wrote: > Dear community, > > The Apache Groovy team is pleased to announce version 2.6.0-alpha-3 of > Apache Groovy. > Apache Groovy is a multi-facet programming language for the JVM. > Further details can be found at the

Re: [ANNOUNCE] Groovy 2.4.14 Windows Installer Released

2018-03-04 Thread Paul King
Thanks Keegan! On Sun, Mar 4, 2018 at 3:26 PM, Keegan Witt wrote: > The Windows installer for Groovy 2.4.14 is available from the usual place: > https://bintray.com/groovy/Distributions/download_file? > file_path=groovy-2.4.14-installer.exe > > -Keegan >

[ANNOUNCE] Apache Groovy 2.4.14 released

2018-03-01 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.4.14 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This release is a maintenance release of the GROOVY_2_4_X branch.

Re: Groovy Champions proposal feedback

2018-02-26 Thread Paul King
On Mon, Feb 26, 2018 at 5:55 PM, Søren Berg Glasius wrote: > @Mario > > Very good thoughts, I really like the idea that an award is permanent, I > believe that goes for Java Champs as well. > > Naming wise, Groovyssimo is fun, but not naming material for an award :-) > But we

[ANNOUNCE] Apache Groovy 2.5.0-beta-3 released

2018-02-23 Thread Paul King
[Apologies for the duplicate email - the previous one was missing the subject line] Dear community, The Apache Groovy team is pleased to announce version 2.5.0-beta-3 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the

  1   2   3   >