Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "spring-boot-autoconfigure" module should provide configuration metadata #8474

Closed
zoobert opened this issue May 11, 2023 · 3 comments · Fixed by #8516
Closed

The "spring-boot-autoconfigure" module should provide configuration metadata #8474

zoobert opened this issue May 11, 2023 · 3 comments · Fixed by #8516
Labels
enhancement New feature or request

Comments

@zoobert
Copy link
Contributor

zoobert commented May 11, 2023

Spring provides an annotation processor that can generate a spring-configuration-metadata.json. This descriptive file contains the necessary information for interaction with the configuration properties that IDEs can leverage to provide autocompletion and other configuration hints.

This file can automatically be generated by the spring-boot-configuration-processor during the build process. It serves a different purpose than the existing spring-boot-autoconfigure-processor, but is just as helpful.

Adding the following line to the build.gradle.kts should generate the file that can be distributed with the library. This file is generated for official spring boot dependencies.

  annotationProcessor("org.springframework.boot:spring-boot-configuration-processor:$springBootVersion")
@zoobert zoobert added the enhancement New feature or request label May 11, 2023
@trask
Copy link
Member

trask commented May 16, 2023

hi @zoobert! this sounds like a nice addition, are you interested to contribute it?

@zoobert
Copy link
Contributor Author

zoobert commented May 17, 2023

@trask I submitted a PR: #8516

I don't know how to relate it to this issue properly.

@trask
Copy link
Member

trask commented May 17, 2023

great! I linked them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants