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

Aristedes Maniatis <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <[email protected]>
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 
> (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 <dheinric-gGaKbNYk6w1Wk0Htik3J/[email protected]> 
> wrote:
>
>     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 using the
>>     "importPackages" name.
>
>     No, doesn't make any difference. Error message is exactly the same.
>
>     Bye...
>
>     Dirk
>
>     -- 
>
>     *Dirk Heinrichs*
>     Senior Systems Engineer, Delivery Pipeline
>     OpenText ™ Discovery | Recommind
>     *Phone*: +49 2226 15966 18
>     *Email*: dheinric-gGaKbNYk6w1Wk0Htik3J/[email protected]
>     *Website*: www.recommind.de
>     Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>     Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu
>     Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn,
>     Registernummer HRB 10646
>     This e-mail may contain confidential and/or privileged
>     information. If you are not the intended recipient (or have
>     received this e-mail in error) please notify the sender
>     immediately and destroy this e-mail. Any unauthorized copying,
>     disclosure or distribution of the material in this e-mail is
>     strictly forbidden
>     Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>     Informationen. Wenn Sie nicht der richtige Adressat sind oder
>     diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
>     sofort den Absender und vernichten Sie diese Mail. Das unerlaubte
>     Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht
>     gestattet.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.