question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

additional-spring-configuration-metadata.json is not being merged when building with Gradle 4

See original GitHub issue

Set 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:closed
  • Created 6 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
wilkinsonacommented, Jul 13, 2017

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.

0reactions
mmoayyedcommented, Jul 14, 2017

Managed to get this working and tested it. First draft at https://github.com/spring-projects/spring-boot/pull/9758

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found