additional-spring-configuration-metadata.json is not being merged when building with Gradle 4
See original GitHub issueSet up the simplest possible app according to the documentation wrt generating spring configuration metadata along with additional-spring-configuration-metadata.json
for those additional “hints” to be merged into the main metadata file. It does not seem to work.
https://github.com/dima767/additional-config-metadata-not-working
Try ./gradlew clean build
or ./gradlew clean bootRun
This is Boot 1.5.4
and Gradle 4.0
/cc @mmoayyed
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
How to merge additional-spring-configuration-metadata.json ...
The default behavior find additional json file in the class output path. But in gradle build, additional json file is located in $buildDir/ ......
Read more >Configuration Metadata - Spring
Configuration metadata files are located inside jars under META-INF/spring-configuration-metadata.json . They use a JSON format with items ...
Read more >Solving common problems - Gradle User Manual
Small problems in a build, like forgetting to declare a configuration file as an input ... Gradle does not track changes in environment...
Read more >Spring Boot Reference - Appendix B. Configuration meta-data
While this is not supposed to be a frequent scenario, ... any additional-spring-configuration-metadata.json files will not be processed.
Read more >Dependency Scanning for Java Gradle projects - GitLab.org
The Gemnasium Gradle plugin generates a JSON array of dependency objects. ... will the JSON dependency file not have to be generated?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve opened https://github.com/spring-projects/spring-boot/issues/9755 for the trickier problems.
@mmoayyed Thanks very much. Just in case you haven’t already spotted where the fix needs to be made, it’s in
MetadataStore
.Managed to get this working and tested it. First draft at https://github.com/spring-projects/spring-boot/pull/9758