vigneshsiva11 opened a new pull request, #15566: URL: https://github.com/apache/grails-core/pull/15566
This pull request addresses part of the work for issue number 15469. It makes Spring Boots configuration metadata processor work in some modules that already use the ConfigurationProperties annotation. Here are the modules that were updated: - grails-databinding - grails-web-url-mappings - grails-cache - grails-views-gson - grails-views-markup These are the changes that were made: - A new dependency was added: annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" - The Grails BOM was applied to the annotation processor configuration. This means the dependency will be resolved correctly when the project is built. So how does the process work? When the code is compiled, the Spring Boot configuration processor automatically makes a file called META-INF/spring-configuration-metadata.json This keeps the configuration metadata in sync with the source code. It also reduces the need to manually keep metadata files up to date. The default values and property names come from the existing ConfigurationProperties classes. The above is what was checked to make sure everything works: - Java 17 was. Set up in the development container - The Gradle compilation was completed successfully for the updated modules - The generated metadata was checked in the build output for an example like the grails-databinding module - Some things to note: This pull request only does the part of the work for issue number 15469. The configuration metadata for DSL will be done in later parts. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
