Is your feature request related to a problem? Please describe.
in order to be configuration cache compatible you'd have to move to Property's and Provider, gradle 9 is working to migrate their things to Property's across the board. Would be nice to see that here. Especially on outputDir This could be better written
outputDir(project.layout.buildDirectory.dir("generated").map { it.asFile }.get())
as
outputDir(project.layout.buildDirectory.dir("generated"))
which would have to change the internal value to be a Property (I think it's DirectoryProperty...)
which could also be called as
outputDir.set(project.layout.buildDirectory.dir("generated"))
I assume you'd keep the method API in a way that allowed either the Provider or a File, but the underlying fields would have to change.
Is your feature request related to a problem? Please describe.
in order to be configuration cache compatible you'd have to move to
Property's andProvider, gradle 9 is working to migrate their things toProperty's across the board. Would be nice to see that here. Especially onoutputDirThis could be better writtenas
which would have to change the internal value to be a
Property(I think it'sDirectoryProperty...)which could also be called as
I assume you'd keep the method API in a way that allowed either the Provider or a File, but the underlying fields would have to change.