Re: Potential to include java.time.* as a default import for Groovy 5

2025-05-31 Thread Remko Popma
+1 On Sun, Jun 1, 2025 at 6:30 AM Gianluca Sartori wrote: > +1 > > Gianluca Sartori > -- > https://dueuno.com > > On Sat, 31 May 2025 at 09:37, Paul King wrote: > > > > Hi folks, > > > > We have a feature request, and potential PR, to add java.time.* as a > > new default import: > > > > https:/

Re: Potential to include java.time.* as a default import for Groovy 5

2025-05-31 Thread Joe Wolf
+1 >From a class-centric perspective, if Date is available by default, LocalDate et. al. should also be available. On Sat, May 31, 2025, 7:48 AM James Daugherty wrote: > Hi Paul, > > Is the proposal to do this for 5.x or earlier? > > -James > > On Sat, May 31, 2025 at 6:25 AM Sergio del Amo >

Re: Potential to include java.time.* as a default import for Groovy 5

2025-05-31 Thread Christopher Smith
Would it be feasible to have a project-level configuration akin to lombok.config that could be used to un-auto-import packages (classes would be even better, but I think this conflicts with the internal compiler representation of the auto-imports). I would personally like java.time included, but I

Potential to include java.time.* as a default import for Groovy 5

2025-05-31 Thread Paul King
Hi folks, We have a feature request, and potential PR, to add java.time.* as a new default import: https://issues.apache.org/jira/browse/GROOVY-11513 https://github.com/apache/groovy/pull/2156 There are many good points about including such a star import but also some drawbacks, so we'd like to

Re: Potential to include java.time.* as a default import for Groovy 5

2025-05-31 Thread Sergio del Amo
+1 from me. Although I have fallen into Groovy's @Singleton vs Jakarta @Singleon pitfall, given that `java.time` classes are strongly recommended, I think this change is positive. > On 31 May 2025, at 09:36, Paul King wrote: > > Hi folks, > > We have a feature request, and potential PR, to

Re: Potential to include java.time.* as a default import for Groovy 5

2025-05-31 Thread Gianluca Sartori
+1 Gianluca Sartori -- https://dueuno.com On Sat, 31 May 2025 at 09:37, Paul King wrote: > > Hi folks, > > We have a feature request, and potential PR, to add java.time.* as a > new default import: > > https://issues.apache.org/jira/browse/GROOVY-11513 > https://github.com/apache/groovy/pull/215

Re: Potential to include java.time.* as a default import for Groovy 5

2025-05-31 Thread Guillaume Laforge
I'd love to have java.time as a default import! It's interesting you post this today, as just yesterday, I was writing a Groovy script, using java.time, and somehow forgot that it wasn't already a default. Of course, I got an error, and immediately understood that I should have imported the java.ti

Re: Potential to include java.time.* as a default import for Groovy 5

2025-05-31 Thread James Daugherty
Hi Paul, Is the proposal to do this for 5.x or earlier? -James On Sat, May 31, 2025 at 6:25 AM Sergio del Amo wrote: > +1 from me. > > Although I have fallen into Groovy's @Singleton vs Jakarta @Singleon > pitfall, given that `java.time` classes are strongly recommended, I think > this change

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

2025-05-31 Thread Saravanan Palanichamy
Hello Other Groovy Devs & Eric Miles I thought an email will be a better way to communicate intent with this ticket I raised https://issues.apache.org/jira/browse/GROOVY-11670 This is my current setup - I have a bunch of java files, all of which work fine when compiled with JavaC - Let