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!

37 Upvotes

35 comments sorted by

View all comments

Show parent comment

2

u/rbygrave Jan 28 '26

anything that a normal build can contain, and can be stacked

So that requires the mixin to be written as code right? Does not yet support a mixin defined in yaml/declarative style?

edit: For a simple example, say a mixin only contained a couple of test scope dependencies like assertJ + jupiter - what does that look like?

3

u/lihaoyi Jan 28 '26

Yes currently it requires the mixin be written as code, it doesn't support declarative YAML mixins yet. We could in future if there's demand for it

2

u/rbygrave Jan 28 '26

FYI: In case you haven't seen it: maven tiles plugin https://github.com/repaint-io/maven-tiles ... for approximately "declarative composition" (with limitations around overriding)

And of course: https://maven.apache.org/guides/mini/guide-mixins.html ... ~ "declarative composition" (but not quite released, only in the latest maven 4 snapshot releases)