Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-15 Thread Dirk Heinrichs
Am Dienstag, dem 15.03.2022 um 21:07 +1000 schrieb Paul King: @Grab('com.github.groovy-wslite:groovy-wslite:1.1.2;transitive=false') This seems to solve (or work around?) the problem for me, too. Bye... Dirk -- Dirk Heinrichs Senior Systems Engineer, Delivery Pipeline OpenText ™ Discovery |

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-15 Thread Paul King
This still smells like a classpath problem to me. I have no problem when I run the following script in the 4.0.1 groovyConsole (JDK11): /// @Grab('com.github.groovy-wslite:groovy-wslite:1.1.2;transitive=false') import wslite.rest.* def client = new

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-15 Thread Dirk Heinrichs
Am Dienstag, dem 15.03.2022 um 19:25 +1100 schrieb Aristedes Maniatis: If it helps at all, I had exactly the same error when trying to build a project in groovy 4 with gradle 6.x. Upgrading to latest 7.x gradle resolved that in my case. I'm on Gradle 7.4 already. But in my case it doesn't make

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-15 Thread Aristedes Maniatis
If it helps at all, I had exactly the same error when trying to build a project in groovy 4 with gradle 6.x. Upgrading to latest 7.x gradle resolved that in my case. Ari On 5/3/2022 8:18am, Remko Popma wrote: I checked picocli. picocli-groovy has an AST transformation

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Remko Popma
I checked picocli. picocli-groovy has an AST transformation (PicocliScriptASTTransformation) but the source code of that class also does not contain the word "importPackages". So that is not it either. On Fri, Mar 4, 2022 at 10:28 PM Dirk Heinrichs wrote: > Am Freitag, dem 04.03.2022 um 23:12

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Dirk Heinrichs
Am Freitag, dem 04.03.2022 um 23:12 +1000 schrieb Paul King: I'd rename "groovy-astbuilder-4.0.0.jar" in your "lib" folder to something like "groovy-astbuilder-4.0.0.jar.bak" and see if that makes any difference. Just a total guess but that's the only place in the Groovy codebase I could find

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Paul King
I don't know if it will make any difference but assuming you are not using ASTBuilder, there is a little experiment you could try. I'd rename "groovy-astbuilder-4.0.0.jar" in your "lib" folder to something like "groovy-astbuilder-4.0.0.jar.bak" and see if that makes any difference. Just a total

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Dirk Heinrichs
Am Freitag, dem 04.03.2022 um 22:45 +1000 schrieb Paul King: Thanks, and how are you referencing Groovy? I.e. a local install or particular modules through a build? JDK version would also be useful. It's a local install from ZIP, and I simply invoke my script with it, like "/path/to/groovy -cp

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Paul King
Thanks, and how are you referencing Groovy? I.e. a local install or particular modules through a build? JDK version would also be useful. Thanks. Virus-free. www.avast.com

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Dirk Heinrichs
Am Freitag, dem 04.03.2022 um 21:43 +1000 schrieb Paul King: Is importPackages something in the script you are updating or you believe comes from Groovy? No, it's not from my script, so it either comes from Groovy or some external module, but I believe it's the former. Anyway, the script has

Re: Groovy 4.0.0: No such property: importPackages for class: org.codehaus.groovy.ast.ModuleNode

2022-03-04 Thread Paul King
Hi Dirk, Is importPackages something in the script you are updating or you believe comes from Groovy? Virus-free. www.avast.com