Re: Execute a code segment during script compile

2020-03-04 Thread Saravanan Palanichamy
Just to close out this discussion. The way I proceeded was to finish the compile, then invoke the compiled closure (if it did not need any parameters) to get the created object. I can then analyze the object to pull out the constants needed. Thanks for all your responses. On 2020/02/25 09:19:5

[VOTE] Release Apache Groovy 3.0.2 (take 2)

2020-03-04 Thread Paul King
Dear development community, I am happy to start the VOTE thread for a Groovy 3.0.2 release! This release includes 24 bug fixes/improvements as outlined in the changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12346991 Tag: https://gitbox.apache.org/repo

Re: Groovy grep error

2020-03-04 Thread Paul King
Hi Anth, you might have more luck on the users list (rather than the dev list) or a jenkins list. The only thing I'd guess is you need to escape one or both of the backslashes but I don't know enough about how the jenkins integration is done to comment much more than that. Cheers, Paul. On Wed, M

[CANCELLED][VOTE] Release Apache Groovy 3.0.2

2020-03-04 Thread Paul King
There was a tiny glitch in one of the build files which I am going to re-jib and re-build and kick off the release again. Sorry for the glitch. Cheers, Paul. On Wed, Mar 4, 2020 at 4:37 PM Paul King wrote: > > Dear development community, > > I am happy to start the VOTE thread for a Groovy 3.0.

Re: [VOTE] Release Apache Groovy 3.0.2

2020-03-04 Thread Paul King
There must be a platform specific glitch with a change I made to the build to make the CI work better. It wasn't really anything that needed to be in the build for normal usage. It doesn't affect the binary convenience jars. However, since we recognise the source jar as the canonical release, I'll

Groovy grep error

2020-03-04 Thread anth
I am using this below in a declarative groovy pipeline Jenkins template & it throws me error as unexpected token \ can anybody guide please ? Intention is to match the word in sonar.projectKey & use it further. how to achieve this? please note that when I use freestyle jobs in same jenkins using th

Re: [VOTE] Release Apache Groovy 3.0.2

2020-03-04 Thread Jochen Theodorou
Am 04.03.20 um 09:52 schrieb Guillaume Laforge: I was trying to build on Java 11 and got > Ambiguous method overloading for method java.io.File#.   Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:         [class java.lang.Strin

Re: [VOTE] Release Apache Groovy 3.0.2

2020-03-04 Thread Guillaume Laforge
I was trying to build on Java 11 and got > Ambiguous method overloading for method java.io.File#. Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between: [class java.lang.String, class java.lang.String] [class java.io.File,