Re: [Heads up] Gradle builds on main

Robert Muir <[email protected]> Tue, 28 Oct 2025 19:08:32 -0400
Newsgroups gmane.comp.jakarta.lucene.devel
Message-ID <CAOdYfZWzo5wfetz7UFswZMJcJGz=DTqF5Rw9pPX5LboXPM_wOA@mail.gmail.com>
Thank you Dawid for all the hard work. Using the java language really
is so much better.

If you were afraid of the gradle build before, I strongly recommend
giving it a second chance after Dawid's rework here.

On Tue, Oct 28, 2025 at 1:18 PM Dawid Weiss <[email protected]> wrote:
>
>
> Hello everyone,
>
> (TL;DR; if you experience some quirks with the build on main - please ping me. It may be the case I introduced a regression somewhere.)
>
> I've finished moving gradle scripts to Java on main. I also did some cleanups, aiming to make the build faster and to make it compatible with newer gradle features.
>
> Moving to Java made many things clearer to me, even if they're a bit more verbose. I hope it'll be your impression as well. It's still far from a "simple" build, sorry.
>
> The startup time still isn't fast but I think it's faster than before. For example:
>
> > time ./gradlew --no-daemon tasks
>
> * on 10x:
> real    0m11.606s
> user 0m20.956s
> sys 0m4.569s
>
> * on main:
> real    0m8.095s
> user    0m13.523s
> sys 0m3.710s
>
> If you're using the daemon, it should be even snappier. Newer gradle features like the configuration cache could speed things up... but I've had enough of this code and need some time away from it.
>
> Dawid