Since the buildInfo task is primary configured via gradle, It would be nice if I can set set a gradle Provider in additional map.

Example -

springBoot {
    buildInfo {
        properties {
            additional.set(mapOf(
                "frameworkVersion" to providers.gradleProperty("frameworkVersion")
            ))
        }
    }
}

Comment From: wilkinsona

Can you pleased expand a bit on why you think this would be nice? frameworkVersion is, presumably, a constant value so the benefit of it being computed lazily isn't clear to me.

Comment From: SidB3

We have a need to show all runtime dependencies appended in one string in /actuator/info.

For this, I am currently using project.afterEvaluate and appending all the dependencies to a local script variable and referring to this variable in the buildInfo task.

If providers are supported I can avoid using project.afterEvaluate, and write a cacheable task that collects all the dependencies and then refer to the task output in buildInfo