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

Use Spring Boot autoconfigure-processor to optimize auto-configurations #432

Closed
bclozel opened this issue Jul 5, 2018 · 0 comments
Closed
Assignees
Milestone

Comments

@bclozel
Copy link
Contributor

bclozel commented Jul 5, 2018

As explained in the its reference documentation, Spring Boot provides a spring-boot-autoconfigure-processor.

This should be added as an optional dependency to the modules that contains the AutoConfiguration classes (and contains 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, several modules are declaring at least one auto-configuration but don't use this annotation processor. Could you add it to the build?

<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 folders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants