spring-projects / spring-projects/spring-boot

Generate org.springframework.boot.autoconfigure.AutoConfiguration.imports file automatically

Open
#31,228 10 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: on-hold type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

This one isn't a big issue anyway but I feel like @AutoConfiguration annotation should be enough to indicate the intention of the developer to create an autoconfiguration that should be automatically registered.

Personally, I feel META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports might be redundant, though I might be missing some use cases the team has previously thought of. Even if the idea is for this not to happen automatically for some "user-protection" reasons, I believe it would be nice to offer a parameter on the annotation to opt-in. Something like register(boolean register) that can default to false.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the @AutoConfiguration annotation and the META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports file mentioned in the issue. Review existing use cases and team discussion before deciding whether registration should be automatic or opt-in. Done requires a settled design and corresponding implementation or a documented decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.