robertjstroud
11/08/2023, 7:37 PMBuildProperties bean to get some build information that I can display on the home page of my application. This all worked fine in Grails 3.x but has stopped working in Grails 5.x.
According to the Spring Boot documentation, there is a Gradle task called buildInfo that generates a file called META-INF/build-info.properties, which in turn is used to auto-configure a BuildProperties bean.
https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/howto-build.html
The META-INF/build-info.properties file is correctly being generated, but the auto-configured BuildProperties bean appears to be empty.
Can anyone think of a reason why this has stopped working?
Alternatively, since the META-INF/build-info.properties file contains the information I need, what's the best way to access it directly from Grails?
Thanks,
Robert