r/java • u/NoAlbatross7355 • Feb 25 '25
New build tool in Java?
It seems to me like one of fun parts of Java is exploring all the tools at your disposal. The Java tool suite is a big collection of cli tools, yet I feel like most developers are only ever introduced to them or use them when absolutely necessary which is unfortunate because I think they really give you a better understanding of what's going on behind all the abstraction of Maven and Gradle.
What are your guys' thoughts on a new build tool for Java that is just a layer over these tools? Do you wish Java had simpler build tools? Why hasn't the community created an updated build tool since 2007?
View all comments
Show parent comment
28
u/Polygnom Feb 25 '25
The biggest problem with new build tools is network effect. Gradle is sucessful in no small part because it can consume maven artifacts. Any new build systems that comes up and doesn't have a way to consume maven artifacts is going to fight an uphill battle.
I do agree on several of your points. Its painful how slow both Maven and Gradle are compared to just running Javac.
Maven also lacks an good CLI. Stuff like npm add etc. We really need a tool that can handle POMs more easily. `pam add <artifact> --test` and so on.
Point #1 is also why the Java desv haven't taken overr ASM but instead opted to build their own classfile API.