[ 
https://issues.apache.org/jira/browse/CAMEL-12627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16538320#comment-16538320
 ] 

brian clozel commented on CAMEL-12627:
--------------------------------------

Metadata looks good - the format and its content might evolve in the future, 
but generating it will help the starters (and Spring Boot). Make sure to cover 
all auto-configurations (I'm seeing [quite a lot of those 
here|https://github.com/search?q=EnableAutoConfiguration+repo%3Aapache%2Fcamel+extension%3Afactories&type=Code]).

Thanks!

> Use Spring Boot autoconfigure-processor to optimize auto-configurations
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-12627
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12627
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring-boot, camel-spring-cloud
>    Affects Versions: 2.21.1
>            Reporter: brian clozel
>            Priority: Major
>             Fix For: 2.23.0
>
>
> As explained in [the its reference 
> documentation|https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc#autoconfigure-module],
>  Spring Boot provides a {{spring-boot-autoconfigure-processor}}.
> This should be added as an optional dependency to each module that contains 
> AutoConfiguration classes (and the `spring.factories` file declaring them).
> Once configured, this annotation processor will generate metadata at compile 
> time and will help Spring Boot process those auto-configurations without 
> loading the actual classes in some cases.
> In this project, the several modules are declaring auto-configurations but 
> are not using this annotation processor. Could you add it to the build files?
> {code:xml}
> <dependency>
>  <groupId>org.springframework.boot</groupId>
>  <artifactId>spring-boot-autoconfigure-processor</artifactId>
>  <optional>true</optional>
> </dependency>
> {code}
> Once added, this should generate a 
> {{spring-autoconfigure-metadata.properties}} file in the 
> {{target/classes/META-INF}} folder of earch module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to