Jendrik Johannes
11/24/2026, 11:20 AMzipTree here in some form without breaking the config cache and without the hassle of injecting the FileOperations service in some complicated way:
tasks.registerJar("fatJar") {
from(configurations.runtimeClasspath.get().elements.map {
jars -> jars.map { zipTree(it) }
})
}
But I can’t find how this works. In the release notes it is not described (or I am blind). And I have trouble finding this in the docs. As usual, if you search for “gradle services” you get a lot of hits on other things as the term “service” is heavily overloaded.
Anyone has the right pointer/link for me? Thanks!Thomas Broyer
11/24/2026, 11:54 AMJendrik Johannes
11/24/2026, 11:59 AMfindAll / filter which will implicitly resolve the Configuration eagerly at Configuration Time by turning it into an IterableFile .
It’s also why dependsOn(configurations.runtimeClasspath) is needed in that setup (another anti-pattern imo).
If these new APIs exist, this site should be updated. I can do an issue (or PR) once I know how these work.Thomas Broyer
11/24/2026, 12:07 PMJendrik Johannes
11/24/2026, 12:09 PMBuild authoring gets less verbose, with Gradle’s built-in services for working with files, objects, and processes now available directly in scriptsBut then I probably misunderstood. But what else does that refer to? 🤔
Thomas Broyer
11/24/2026, 12:15 PMservice() lookup, that was reverted before release: github.com/gradle/gradle/commit/86035f093fa8…Vampire
11/24/2026, 12:24 PMJendrik Johannes
11/24/2026, 12:24 PMVampire
11/24/2026, 12:24 PMJendrik Johannes
11/24/2026, 12:25 PMJendrik Johannes
11/24/2026, 12:25 PMVampire
11/24/2026, 12:25 PMVampire
11/24/2026, 12:26 PMwill be reworked for 9.9.Is obviously also not correct, it is not present in 9.9.1 either
Vampire
11/24/2026, 12:27 PMservice<FileSystemOperations>() and service(FileSystemOperations)Jendrik Johannes
11/24/2026, 12:28 PMJendrik Johannes
11/24/2026, 12:29 PMJendrik Johannes
11/24/2026, 1:24 PMOnceMay I ask if this happened and what the status is? Is there a follow up issue I can follow to see when this lands in a release?is merged back, the revert also lands on `master`; the 9.9 rework starts from there.release
Reinhold Degenfellner
11/24/2026, 1:27 PMVampire
11/24/2026, 1:41 PMMay I ask if this happenedThe revert to master happened in github.com/gradle/gradle/commit/888c692fc93f…
Jendrik Johannes
11/24/2026, 2:31 PM