Matei David
09/15/2025, 2:18 PMpluginManager.withPlugin
. For tasks, I'm thinking tasks.matching{ it.name == "sourcesJar" }.configureEach {...}
? Is this lazy enough?Vampire
09/15/2025, 2:20 PMtasks.named { it == "sourcesJar" }.configureEach { ... }
if you don't need to support Gradle version not yet having the named { ... }
variantVampire
09/15/2025, 2:22 PMnamed { ... }