On 11/13/26 22:12, Matthias Bl�sing via dev wrote:
> Hi,
>
> Am Montag, dem 09.11.2026 um 14:26 +0100 schrieb Michael Bien:
>> Build nbjavac with baseline 21 (reduced patching, simpler build)
> I think this is a good approach. Just the build system gives me hard
> NIH vibes and raises the question "why even" and not just code it in
> plain java? Apart from that nice work.
Hi,
I don't have strong feelings about the build system, it is essentially
java right now.
What bld does is to give the build a few CLI entry points (it doesn't
use any other bld features, i think there are only two imports on top of
the class).
The requirements for picking a build system here were:
- it must be flexible, since it has to build the JDK, run jackpot, git
patch, run javac, copy things around etc
- it has to be able to work with and potentially on upstream JDK
bytecode levels
This is what disqualified gradle early since it lacks behind the current
JDK release and maven is very much declarative + by-convention. We would
risk to run into situations which don't map to maven very well. The
strength of maven to be a good choice for most java projects can't be
really exploited here.
A concrete example why "script like" and flexible has some advantages
here in my opinion:
The build applies one small patch at the moment to deal with backporting
unnamed variables ("_") which don't exist on JDK 21. But there might be
more than one patch in future, that is why the patch name includes the
JDK version indicating when the patch can be removed (25 in case of
unnamed variables). If something fails in the loop, it can produce
useful error messages giving hints how to resolve the issue when a dev
tries to upgrade the JDK.
Also keep in mind i wrote that fast and I don't know bld very well - It
likely has potential to lose some lines.
Even though the build file is a bit longer than i wanted it to be, i
think 70% of it is just utility and file IO right now. The top of the
file are the build phases. I wanted to add the NB code fold markers but
forgot about it.
(we could use mvn to upload the artifacts as last step, I haven't
touched the pom at all)
>
> For the, "Who would maintain it"? I agree with Neil bringing it into
> Apache would be great, but we could open a github group under the
> "Friends of Apache NetBeans" umbrella on github and move the repository
> there. That would at least be more in the NetBeans area.
yes that would be good. I don't want to have my own namespace in the GAV
and an important supply chain project like this should be maintained by
more than one committer.
I also think there is a chance that we could make this an apache
project. Since we would vote for the build harness, not for the
artifacts. (the build script *is* the project)
Apache project would also automatically solve the committer issue, since
to start one you need 3 PMCs - without solid foundation there is no project.
Am I reading between the lines that you might be interested in helping
maintain it? (-> be a PMC? ;))
(I could also setup a temporary umbrella namespace, I checked and github
orgs can serve as GAV for central after initial validation - ASF would
be better though as long term solution)
best regards,
michael
>
> Greetings
>
> Matthias
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists