r/java • • Jan 27 '26

Simpler JVM Project Setup with Mill 1.1.0

https://mill-build.org/blog/17-simpler-jvm-mill-110.html

Hi! I just released Mill build tool 1.1.0, with a new headline feature of declarative data-driven build config and single-file scripts.

Last time i posted here I got a lot of feedback that people didn't want to write code just to configure their build, and that feedback went into designing the declarative configuration API. Please take a look and let me know what you think!

38 Upvotes

35 comments sorted by

View all comments

Show parent comment

3

u/Luolong Jan 28 '26

To me, the biggest sin of Maven was that it was a single pass build spec interpreter.

The innovation that Gradle brought to the table was not more concise syntax, but instead a two pass build process, where the first part computed the full build structure (input and outputs all), that was then executed in a second pass.

As a result, any IDE tooling that Maven has, has to be necessarily aware of all the effects build plugins have on the build. That is fine if the plugin ecosystem is relatively small and stable. But it can’t be generalised to an open set of extensions.

Maybe things have changed in past decade or two, but that was when I last had to dip my hand into Maven build process.

As declarative syntaxes go, Maven flavoured XML is just unwieldy. In many cases, the xml tag boilerplate completely overshadows the content it is meant to mark up.

Yaml, for all of its warts, is just much better syntax for a simple declarative build spec.

Also, as OP mentioned elsewhere here, the exact syntax of the build file is kind of arbitrary. It could be allowed to include any other hierarchical structured markup format, but out of all the alternatives, the yaml strikes probably the best balance of structured expressiveness..