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 #1410

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

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

The spring-cloud-stream and spring-cloud-stream-reactive 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.

sobychacko added a commit to sobychacko/spring-cloud-stream that referenced this issue Jul 5, 2018
Add spring-boot-autoconfigure-processor to spring-cloud-stream
and spring-cloud-stream-reactive modules for auto configuration optimization.

Resolves spring-cloud#1410
@sobychacko sobychacko self-assigned this Jul 5, 2018
@olegz olegz closed this as completed in 66cfdff Jul 6, 2018
@sabbyanandan sabbyanandan removed the in pr label Jul 6, 2018
sobychacko added a commit to sobychacko/spring-cloud-stream that referenced this issue Jul 11, 2018
Add spring-boot-autoconfigure-processor to spring-cloud-stream
and spring-cloud-stream-reactive modules for auto configuration optimization.

Resolves spring-cloud#1410
Resolves spring-cloud#1411
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

No branches or pull requests

3 participants