Eli Graber
11/18/2025, 10:00 PMVampire
11/18/2025, 10:01 PMdoLast or doFirst action to the compile tasks which would make those actions and thus the build-script classpath an input to the compile task.
The rest is, what it is.
If you want to use type-safe accessors, they have to be generated, if that changes, the buildscript classpath changes, I don't see what should be tracked or could be improved there.
I though highly disagree with the general tonus and conclusion. In a large build where you constantly add and remove projects, it might be a good idea not to use them. In all normal projects I would always use them, as there the set of projects seldomly changes and so none of the post applies. 🤷♂️Martin
11/19/2025, 9:01 AM.gradle.kts files are rebuilding CC)TheGoesen
11/19/2025, 1:27 PMVampire
11/19/2025, 1:32 PMAs someone supporting a large build I would very much agree with the tonus and conclusion...
In a large project this causes performance issues and buildcache invalidation nightmares.As I said, for big projects where additionally you constantly change the set of projects and thus the available accessors I agree with tonus and conclusion. But the blog post is absolutely against and concludes to never use them, and that is where I disagree, as in 98.7% of the builds out there this is not an issue. 🙂
Martin
11/19/2025, 1:32 PM