Re: Controlled compilation

2025-06-10 Thread Jochen Theodorou
On 10.06.25 15:15, Saravanan Palanichamy wrote: [...] 1. Add ABC.java as the only source unit. Then I override resolve visitor, to detect all resolve attempts. I now know what other classes need to be resolved, so I try to add new files to the compilation units. The code looks like i

Re: https://issues.apache.org/jira/browse/GROOVY-11670

2025-06-10 Thread Milles, Eric (TR Technology) via dev
The import aliasing solution proposed by Jochen is immediately usable. There was a typo, which may hinder understanding. import someType as SomeType class someType { private SomeType someFunction() { } } The parser can handle lowerCase name for the class, but not for return type of a

Re: Controlled compilation

2025-06-10 Thread OCsite
Given a Groovy source can contain any number of classes with any names, the detection that ABC depends on a given source DEF is going to be rather at the difficult side. The only solution I can see is to build all the sources at start and use appropriate ASTTs to create a complete map source <-

Re: Controlled compilation

2025-06-10 Thread Saravanan Palanichamy
Hi Jochen Thank you for the explanation. I am not trying to do this with a build system like gradle or make. I am hosting the Groovy Compiler in a Java CLI and I have my own customizations. This is my setup - A Java CLI that bundles the Groovy Compiler and takes command like options to fee

[RESULT][VOTE] Release Apache Grails (incubating) 7.0.0-M4

2025-06-10 Thread James Daugherty
Hi Everyone, The vote has passed with FIVE +1 binding votes and 1 non-binding vote. We will proceed with the next steps. -James