The configuration of the configuration property sections in the appendix is currently hardcoded in the DocumentConfigurationProperties
task in buildSrc
. When a change is made to the sections, this triggers an entire rebuild due to how Gradle treats buildSrc
. It would be better if the configuration was in the spring-boot-docs
module's build.gradle
script. It can be declarative so it's well-suited to going there rather than being done in code.
Comment From: snowykte0426
Hi there! 👋
I've implemented a solution for this issue in PR #47121.
What was done:
- Moved configuration property sections from hardcoded implementation in buildSrc/DocumentConfigurationProperties to declarative configuration in spring-boot-docs/build.gradle
- Added support for external configuration through a new ListProperty
Please review PR #47121 when you have a chance. Thanks!