Skip to content

Java annotation processor to generate additional spring configuration metadata

License

Notifications You must be signed in to change notification settings

eitco/documentation-configuration-metadata-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Build status Maven Central Version

documentation-configuration-metadata-processor

This java annotation processor generates additional spring configuration metadata for the configuration documentation generation plugin.

It's main usage is to generate configuration metadata for classes used in collections in @ConfigurationProperties classes, which are ignored by the spring-boot-configuration-processor.

Usage

Add a dependency to the processor to your POM:

<dependency>
    <groupId>de.eitco.cicd</groupId>
    <artifactId>documentation-configuration-metadata-processor</artifactId>
    <optional>true</optional>
    <version>processor-version</version>
</dependency>

Annotate classes to generate metadata for with:

@AdditionalConfigurationMetadata(groups = {"TestGroup1","TestGroup2"})

The annotation requires one or more group names. The names are used to merge the generated configuration metadata with metadata generated by the spring-boot-configuration-processor. By setting more than ony group it is possible to reuse metadata at several places in the generated documentation.

The processor supports the @NestedConfigurationProperty annotation from Spring Boot in classes annotated with @AdditionalConfigurationMetadata.

About

Java annotation processor to generate additional spring configuration metadata

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published