Skip to content

Gradle Property's #1582

@xenoterracide

Description

@xenoterracide

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions