Upgrading our application from Grails 5 to Grails ...
# questions
t
Upgrading our application from Grails 5 to Grails 6 and this approach for storing build metadata no longer works (adding build info to
<http://grails.build.info|grails.build.info>
) file: https://objectcomputing.com/news/2017/04/02/add-build-info-your-project We get the following error when running any Gradle task with our Grails 6 app now. Does anyone have a method they recommend for storing build metadata such as Git commit revision, build date, build number for a Grails 6 application?
Copy code
FAILURE: Build failed with an exception.

* Where:
Build file '/Users/tylervanzanten/src/hypercision/rollcall/backend/rollcall/build.gradle' line: 140

* What went wrong:
A problem occurred evaluating root project 'rollcall'.
> Could not get unknown property 'buildProperties' for root project 'rollcall' of type org.gradle.api.Project.
I figured out how to get it working with Grails 6. I needed to wrap it all inside a
project.gradle.projectsEvaluated
closure like so:
Copy code
project.gradle.projectsEvaluated {
    buildProperties.doLast {
        ...
    }
}