com-lihaoyi / mill

Mill is a fast JVM build tool that supports Java, Scala and Kotlin. 2-4x faster than Gradle and 4-10x faster than Maven for common workflows, Mill aims to make your project’s build process performant, maintainable, and flexible
https://mill-build.org/
MIT License
2.24k stars 358 forks source link

`runBackground` should receive `args` as `Task`s as `run` does #3895

Open lolgab opened 4 weeks ago

lolgab commented 4 weeks ago

Nowadays it's impossible to make runBackground's args depend on other tasks.

lolgab commented 4 weeks ago

The workaround is to use runBackgroundTask but UX is not as good as runBackground since you need to also pass the mainClass.

lihaoyi commented 3 weeks ago

We should try to use the .runner() helper for this as well, IMO the UX is much better with this than passing Tasks around manually (at the cost of some flexibility, which normally isn't an issue)

lolgab commented 3 weeks ago

In that case we still miss an overload called runBackground that doesn't take the mainClass argument. We can leave this issue open as compact breaker for the Mill 0.13 window