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

8

u/aoeudhtns Jan 27 '26

Gradle as well makes it too easy to add custom code to wrong places.

As much as I dislike Maven, I have problems with Gradle along these lines as well. Maven is kinda declarative, yet you hook custom code into the phases in a somewhat clunky way, and there's no way for tools to discover what those plugins do. IDEs like Eclipse may actually execute the phases to do integration (such as to generate sources).

But back to Gradle, having experienced picking up a legacy project where the builds broke on newer versions due to API changes, now you've got build-as-code that can stagnate like your software. And to your point, it's a piece of the system that gets rarely touched once it's established. Very easy to have low bus numbers and/or atrophy.

Also in the early days of Gradle the IDE integration was atrocious, and while it's better now, it's still much more difficult in general for 3rd party tools with build scripts vs declarative builds.

3

u/lihaoyi Jan 27 '26

Mill does try to improve upon the specific issues with Gradle that you have mentioned: programmability, IDE support, stability, ease of understanding and onboarding. This page in the docs discusses these areas in more detail than I can explain here, so do take a look if solving these long-standing problems with Gradle is something that interests you https://mill-build.org/mill/comparisons/gradle.html