Re: Another ASTT question: own error collector, best way?

2020-05-20 Thread Paul King
What you have is probably fairly reasonable at this time. There are ways to hook into the lifecycle, e.g. invokeMethod, which I assume you have looked at. You could remove some of the duplication around calling _processMessage that way. Cheers, Paul. On Wed, May 20, 2020 at 1:57 AM o...@ocs.cz

Re: How to test and deploy without groovy-all?

2020-05-19 Thread Paul King
On Tue, May 19, 2020 at 8:32 PM OCsite wrote: > Paul, > > On 19 May 2020, at 7:09, Paul King wrote: > On Tue, May 19, 2020 at 2:58 AM Corum, Michael wrote: > > The TL;DR version, slightly simplified: If two jars containing the same > package, e.g. the non-all jar and the

Re: JsonOutput and indentation

2020-05-19 Thread Paul King
Pretty printing is currently hard-coded. Custom generators let you customize the content of the JSON strings, pretty printing runs after the fact just adding line breaks and (currently hard-coded) indenting. It would be feasible to enhance by perhaps having an additional variant of prettyPrint with

Re: ASTT to correctly work with pre-processed sources?

2020-05-18 Thread Paul King
Groovy is all geared up to make it easy for you to do whatever pre-processing you might like as an AST transform and in that scenario it automatically corrects line numbering as needed (your AST transform may have to play its part in making that work). So, in that scenario you'd move whatever you d

Re: How to test and deploy without groovy-all?

2020-05-18 Thread Paul King
On Tue, May 19, 2020 at 2:58 AM Corum, Michael wrote: > I’ve noticed that there is a general sense that the majority of the users > don’t need groovy-all. How did that knowledge come about? Was there a > survey that I missed? Is there a place I can go to see the survey > results? (By the way

Re: parser problem?

2020-05-15 Thread Paul King
You might want to try Script -> Inspect CST. Currently the parser doesn't see the ternary operator at all. Currently, "2?[3]" is seen as a valid term for safe indexing even though we know as humans that "2" is just a literal and wouldn't be allowed here. Currently, you can use "1>2?([3] as Set):nul

Re: In Groovy 3, about 80 new extension methods were added. Where can I find the complete list?

2020-04-16 Thread Paul King
If you have the source code and an IDE and search for '@since 3.0' you will find 79 results when searching with *Methods.java as the file mask and 1 with *Extensions.java as the file mask. There might be some that were added without @since or in files that match some other file mask but that's a go

[ANNOUNCE] Apache Groovy 2.5.11 released

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

[ANNOUNCE] Apache Groovy 3.0.3 Released

2020-04-10 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.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 release is a maintenance release of the GROOVY_3_0_X branch.

Re: Incorrect hash

2020-04-09 Thread Paul King
This looks like a glitch in our release process. The timestamps in the zip (and sha256 file) on downloads.apache.org have changed but nothing else. I'll see what I can do to correct this. In the meantime you can use the checksum at: https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.4.19.zi

Re: Pointers needed for complex groovy shell variable escapes

2020-03-24 Thread Paul King
$ in Groovy double quoted strings indicates the start of a placeholder, so you are expecting Groovy to supply the values for things like ${CURL_OPTS}. I suspect you want the shell environment to replace those. So you can either use the triple single quoted string (exactly what it is intended for) o

[POLL] GEP: Support for the new JDK14 string escape sequence (\s for single space)

2020-03-16 Thread Paul King
Hi folks, With JDK14 imminent, would you like the new escape sequence \s for single space supported by Groovy? (It's fully backwards compatible and doesn't impact slashy strings used in regex scenarios. It would be available when using Groovy with earlier JDKs, e.g. JDK8 if made available in Groov

Re: [ANNOUNCE] Groovy 2.4.19, 2.5.10, and 3.0.2 Windows Installers Released

2020-03-13 Thread Paul King
Thanks Keegan! On Fri, Mar 13, 2020 at 12:59 PM Keegan Witt wrote: > I released these a few days ago, but didn't send messaging out. > > 3.0.2: > https://bintray.com/groovy/Distributions/download_file?file_path=groovy-3.0.2.msi > 2.5.10: > https://bintray.com/groovy/Distributions/download_file?f

Re: IntelliJ IDEA Groovy 2.5/3.0 Feature Support - @Newify(pattern=...)

2020-03-08 Thread Paul King
in Groovy, I expect he > typically will put @Newify(pattern = /[A-Z].*/) into his Groovy > configscript, to have it active in every class, so it would not matter that > the older, more restricted version works without any annotation. > > Cheers, > mg > > > On 09/03/2020 01:36,

Re: IntelliJ IDEA Groovy 2.5/3.0 Feature Support - @Newify(pattern=...)

2020-03-08 Thread Paul King
The named argument shorthand, which doesn't require @Newify, displays errors too (currently won't work with your Foo example since it relies on a no-arg constructor and setters): [image: image.png] Cheers, Paul. On Mon, Mar 9, 2020 at 10:00 AM MG wrote: > Hi Groovy users, > > the current Int

[ANNOUNCE] Apache Groovy 3.0.2 released

2020-03-08 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.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 release is a maintenance release of the GROOVY_3_0_X branch.

[ANNOUNCE] Apache Groovy 2.5.10 released

2020-03-06 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.10 of Apache Groovy. The main highlight of this release is JDK 14 support (though still with warnings). Users wanting improved JDK 14 support should consider upgrading to Groovy 3 versions. Apache Groovy is a multi-faceted

[ANNOUNCE] Apache Groovy 2.4.19 released

2020-03-03 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.4.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_4_X branch

Re: please help : GroovyCastException: why ?

2020-02-25 Thread Paul King
It is still a bit hard to let you know the best way to proceed from just the sample you have shown without more context. If I had a class Article and an instance Article (I am assuming from the binding), then I would either: * use an alias for the class, i.e.: import Article as MyArticle // then

Re: The groovy documentation page is too large to quickly open and browse

2020-02-21 Thread Paul King
Yes, http://groovy-lang.org/documentation.html is probably what you want. On Fri, Feb 21, 2020 at 6:26 PM Jochen Theodorou wrote: > On 21.02.20 07:39, 杨波 wrote: > > The groovy documentation page > > (http://docs.groovy-lang.org/latest/html/documentation/) is too large to > > quickly open and br

[ANNOUNCE] Apache Groovy 3.0.1 released

2020-02-17 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.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 release is a maintenance release of the GROOVY_3_0_X branch.

Re: [ANNOUNCE] Apache Groovy 3.0.0 released

2020-02-10 Thread Paul King
; > Awesome. A new Era has begun 😊 > > Med venlig hilsen / Best regards > > Søren Berg Glasius > > Sent from my phone, thus brief > > > > On Mon, Feb 10, 2020, 14:06 Paul King wrote: > > Dear community, > > The Apache Groovy team is pleased to announce v

[ANNOUNCE] Apache Groovy 3.0.0 released

2020-02-10 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.0 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. We are sure you'll enjoy the features in this new version of Groo

Re: Class not found errors on 2.5.9

2020-02-09 Thread Paul King
rg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa

Re: Class not found errors on 2.5.9

2020-02-05 Thread Paul King
Also, we would be interested in your classpath. It might be that both 2.4 and 2.5 jars are on the classpath somehow. Doesn't appear to be the case in the scan but depends on how the tomcatRun task is defined I guess as to where its classpath is set up. On Thu, Feb 6, 2020 at 8:28 AM Paul

Re: Class not found errors on 2.5.9

2020-02-05 Thread Paul King
Hi Blake, Do you have a stack trace? That's really what we were after in the scan, but may not be possible to get via that means in your case. Thanks, Paul. On Thu, Feb 6, 2020 at 5:58 AM Blake McBride wrote: > Yes but as I said initially, when I run: gradle tomcatRun > I get: > > java.lang.

Fwd: Call for Presentations for ApacheCon North America 2020 now open

2020-01-21 Thread Paul King
Groovy has its own track at ApacheCon NA this year. Be sure to get your submissions in via the CFP link. Speakers get entry to the conference and typically an invitation to the speakers dinner (such details will come later). Don't be put off if you have never given a talk before (we can support y

Re: Convert @Grab to Grape.grab ?

2020-01-20 Thread Paul King
> at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:498) > > at > org

Re: Convert @Grab to Grape.grab ?

2020-01-20 Thread Paul King
formation to see >> how it is done there. >> >> >> >> Erick Nelson >> >> Senior Developer – IT >> >> HD Supply Facilities Maintenance >> >> (858) 740-6523 >> >> >> >> >> >> *From: *Paul King >

Re: Convert @Grab to Grape.grab ?

2020-01-20 Thread Paul King
It's certainly possible since that is what the compiler does. The compiler goes the extra step and adds the jar onto the classpath at compilation time as well but you might not need that. >From a script you'd do something like: groovy.grape.Grape.grab(classLoader: getClass().classLoader, group: 'c

Re: [ANNOUNCE] Apache Groovy 2.5.9 released

2020-01-14 Thread Paul King
gt; On Tue, Jan 14, 2020 at 12:30 AM Paul King wrote: > >> Dear community, >> >> The Apache Groovy team is pleased to announce version 2.5.9 of Apache >> Groovy. >> Apache Groovy is a multi-faceted programming language for the JVM. >> Further details can be f

[ANNOUNCE] Apache Groovy 2.5.9 released

2020-01-14 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.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. This release is a maintenance release of the GROOVY_2_5_X branch.

[ANNOUNCE] Apache Groovy 2.4.18 released

2020-01-14 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.4.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_4_X branch

Re: [ANNOUNCE] Groovy 3.0.0-rc-2 Windows Installer Released

2019-12-16 Thread Paul King
I just got home from travelling and will assess where we are for 3.0.0.GA. It isn't far away. If we don't need an rc-3, it could be in the next couple of weeks otherwise very early next year. On Tue, Dec 17, 2019 at 6:41 AM Daniel.Sun wrote: > According to current progress, Groovy 3.0.0 GA may b

[ANNOUNCE] Apache Groovy 3.0.0-rc-2 released

2019-12-08 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.0-rc-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 greatly

[LAZY] Deprecate and remove groovy.lang.ParameterArray

2019-11-17 Thread Paul King
Hi, The class groovy.lang.ParameterArray isn't being used in our codebase. I propose to deprecate in 3 and remove in 4. From the history it looks like it was added in 2005 as a workaround but removed from usage about a month later since it wasn't needed. Any objections? Cheers, Paul.

Re: GMavenPlus 1.8.1 Released

2019-11-12 Thread Paul King
Nice work! On Wed, Nov 13, 2019 at 12:59 PM Keegan Witt wrote: > GMavenPlus 1.8.1 has been released. This release includes > Bugs > >- #147 Change >sourcesets internal storage from HashSet to TreeSet, to avoid >unpredictable Groovy com

Re: ApacheCon NA 2020

2019-11-07 Thread Paul King
t from my primitive tricorder >> >> > On 7 Nov 2019, at 10:53, Paul King wrote: >> > >> >  >> > >> > Hi all, >> > >> > We currently have a day allocated to Groovy (and related technologies) >> for ApacheCon 2020 NA (venue

Re: Technical Support Expiration Date for Groovy 2.5.7

2019-11-07 Thread Paul King
Groovy is open source with technical support provided by the community. There is no expiration date yet announced for 2.5.7 though we encourage users to move to later versions when available. Cheers, Paul. On Thu, Nov 7, 2019 at 9:38 PM Comeche Nolla, Sergi < scome...@eservicios.indra.es> wrote:

ApacheCon NA 2020

2019-11-07 Thread Paul King
Hi all, We currently have a day allocated to Groovy (and related technologies) for ApacheCon 2020 NA (venue still to be determined). If there are lots of folks interested in giving talks, we can ask for more slots. If folks can let me know their interest I can pass that on to the conference organi

[ANNOUNCE] Apache Groovy 3.0.0-rc-1 released

2019-10-25 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 3.0.0-rc-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 greatly

Re: StreamingMarkupBuilder Namespace problem

2019-09-23 Thread Paul King
That is a "feature" of the current implementation. The resulting XML file is equivalent to what you expect but I agree that it would be nice to not have the duplicated namespaces. We do have plans to rework many of the builders in light of JDK8 streams, so we haven't invested in trying to make the

Re: puzzling error message in Groovy 2.5.7

2019-09-20 Thread Paul King
It does appear to be Eclipse related. Can you compile outside Eclipse? If so, does the resulting class have the same inefficiency problem? FYI, there are a small number of cases where we still call into the dynamic runtime even when @CompileStatic is in place. That is also a possibility. Looking a

Does anyone use Groovy's VerifyClass ant task?

2019-09-18 Thread Paul King
Hi everyone, Just wondering if anyone is still using this class: org.codehaus.groovy.ant.VerifyClass It does very rudimentary checks on class files from ant builds. We mostly created it for our own use to check that the class files we were generating were valid but I suspect we haven't used if f

Fwd: Oops, groovy-3.0.0-beta-3.jar has a non OSGi valid version number!

2019-09-03 Thread Paul King
here is no qualifier. Doing that change would make the "micro" part of the version "0" and the "beta-3" would become a qualifier. Looking at https://www.osgi.org/wp-content/uploads/SemanticVersioning.pdf that change looks correct. Best Regards, Tommy Från: Paul Kin

Re: Oops, groovy-3.0.0-beta-3.jar has a non OSGi valid version number!

2019-08-31 Thread Paul King
Yes oops. I didn't realise we hadn't done the TODO mentioned here yet: https://github.com/apache/groovy-release/blob/master/gradle/phase1.gradle#L126 So to confirm, if it was 3.0.0.beta-3 that would have been fine. Correct? Cheers, Paul.

Re: Groovy 2.5 AnnotationCollector not generating expected bytecode

2019-08-29 Thread Paul King
Hi Andrew, This is a good place to ask questions. It looks like a bug to me when a collector collects another collector. This is supposed to work and from memory we have working cases in our test suite. I'd need to look into it a bit further to be sure. @Immutable is a special case since we handl

Re: The new version of GroovyLab runs well on Linux but fails silently to start on Windows and MacOS

2019-08-21 Thread Paul King
What Java/Groovy versions are you using? Is it the same JVM/Groovy versions as used with earlier versions of GroovyLab that worked? On Thu, Aug 22, 2019 at 12:07 AM sterg wrote: > Hi all, > > > I was developed new versions of GroovyLab, > > https://github.com/sterglee/GroovyLab > > > > that wor

Re: where have all the packages gone?

2019-07-26 Thread Paul King
There aren't any jars corresponding to groovy-ui, groovy-util or groovy-mock. The groovy.mock package is in groovy-test. It depends on the other classes as to which jar they might be in. Can you elaborate a bit more? Cheers, Paul. On Fri, Jul 26, 2019 at 9:30 PM Ralph Johnson wrote: > I'm migra

Re: [ANNOUNCE] Apache Groovy 3.0.0-beta-2 Released

2019-07-21 Thread Paul King
Hi Mirco, was there an issue associated with that? Virus-free. www.avast.com <

Fwd: ACNA 2019 Hackathon

2019-07-16 Thread Paul King
If any Groovy folks are planning to be at ApacheCon North America in Las Vegas in September, let me know and we can try to coordinate something for the Hackathon space. Cheers, Paul. -- Forwarded message - From: Steve Blackmon Date: Tue, Jul 16, 2019 at 2:45 AM Subject: ACNA 201

Re: trying to understand groovy's support for jdk9

2019-07-02 Thread Paul King
I haven't had time to look at your project code yet but some general comments below. Groovy is currently designed to be placed on the classpath not module path with JDK9+. The automatic module names have been there for a while now and we moved files like "org.codehaus.groovy.source.Extensions" out

Ubuntu Snaps

2019-06-28 Thread Paul King
Hi everyone, Linux users can now get Groovy via the Snap Store: https://snapcraft.io/groovy Full instructions for many common distros are available from that site. It will normally involve running: > snap install groovy --classic ... once you have Snap installed (if you don't already). Or if y

Re: Code coverage tools?

2019-06-20 Thread Paul King
Groovy has done a lot of work recently to mark generated methods with an @Generated annotation. We have other generated methods which are synthetic methods. I know JaCoCo has been making changes to ensure that such methods aren't included in coverage analysis. I am not sure whether Cobertura has do

Feedback from any TravisCI users?

2019-06-12 Thread Paul King
Hi all, at the summit I am attending, there are a large number of folks from the TravisCI team. They indicated they would be happy for any feedback about pain points anyone in the Groovy community (or more generally the JDK community) have when running your Groovy/JDK related CI builds with TravisC

Re: Problem running find execute has error

2019-06-11 Thread Paul King
Most folks with anything but the simplest args find the String[] variant of execute to be easier to use than the String variant. On Wed, Jun 12, 2019 at 4:05 AM Sverre Moe wrote: > Groovy is doing something strange with my execute command. > Or perhaps something wrong with my code I cannot see.

Re: website down

2019-06-02 Thread Paul King
The website should be up and running again. Thanks for your patience everyone. Cheers, Paul. On Sun, Jun 2, 2019 at 3:57 PM Paul King wrote: > Hi everyone, > > Please bear with us as our server disks for the groovy-lang.org website > are replaced. This is on our non-Apache se

website down

2019-06-01 Thread Paul King
Hi everyone, Please bear with us as our server disks for the groovy-lang.org website are replaced. This is on our non-Apache server and yet another reminder why we need to finish migrating everything over. I'll send another update once I have details about further progress. Both the website and CI

Re: Moving from (3.0 alpha 4 -> beta 1) causes access error to arise

2019-05-26 Thread Paul King
There are a couple of bugs fixed already which sound similar. If you can try a snapshot version (see downloads page), and see if your problems are already fixed, that would be great. On Mon, May 27, 2019 at 7:09 AM Grant Haywood wrote: > Hello; > Building my project on groovy 3.0 beta 1 causes a

[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 great

[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 branch.

[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 branch

Re: GroovyDoc classloader issue

2019-05-07 Thread Paul King
lexey 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

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 fo

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
t;zebra4" ] 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: > Y

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' + it}

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 would

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 prior

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 Sof

Re: GroovyDoc classloader issue

2019-02-25 Thread Paul King
> 20.02.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 p

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 standalon

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 longer

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 i

[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 acce

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: > https://bintray.com/groovy/Distributions/dow

[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 over

[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 at

[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 branch.

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. >>>

[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 16

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. It

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 ( > https://github.com/gra

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 actua

Re: @Immutable backwards compatibility

2018-09-26 Thread Paul King
8:14 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'

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

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 una

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 delegate

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 groovy.transform.

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

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 > > dev

<    1   2   3   4   5   >