Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12627

Use Spring Boot autoconfigure-processor to optimize auto-configurations

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      As explained in the its reference documentation, 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?

      <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-autoconfigure-processor</artifactId>
       <optional>true</optional>
      </dependency>
      

      Once added, this should generate a spring-autoconfigure-metadata.properties file in the target/classes/META-INF folder of earch module.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            bclozel brian clozel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: