Ability to define default convention for specific Property types #14363
Labels
a:feature
A new functionality
in:provider-api
property lazy provider MapProperty ListProperty DirectoryProperty
While working on Java toolchains, we encountered a scenario where having a default convention on a created property would make sense:
In the context of a java project, it would be great if any task that uses a
JavaLauncher
(the toolchain providedjava
reference) would see its instance with thejava
extension toolchain convention.Right now the wiring happens per plugin / per task.
If one could register default convention mappings on the property factory, the above could be simplified and also implicit for plugin authors leveraging toolchains in Gradle.
The text was updated successfully, but these errors were encountered: