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

Remove support for field-based and constructor-based BuildProducers and forbid build steps that produce nothing #27046

Merged
merged 4 commits into from
Aug 1, 2022

Conversation

yrodiere
Copy link
Member

@yrodiere yrodiere commented Aug 1, 2022

The main goal was to forbid build steps that produce nothing, because those are never going to be executed: they are basically either a bug or dead code in an extension. It turns out we had several such build steps in Quarkus Core, which were never going to be executed.

But it was unclear to me what would happen when a build step produces build items through build producers injected into the constructors and/or fields. Since that injection is a legacy, deprecated feature (nowadays we expect build producers to be passed to the build step method directly, or the build step method to return a build item directly), I proposed that we remove that feature (see https://groups.google.com/g/quarkus-dev/c/JUwVPsAYVP0/m/SMcjGzu6CwAJ), which was agreed upon. Hence the first two commits.

@quarkus-bot
Copy link

quarkus-bot bot commented Aug 1, 2022

/cc @Sanne, @gsmet

Copy link
Contributor

@mkouba mkouba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@yrodiere yrodiere added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Aug 1, 2022
@gastaldi gastaldi merged commit f33b980 into quarkusio:main Aug 1, 2022
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Aug 1, 2022
@quarkus-bot quarkus-bot bot added this to the 2.12 - main milestone Aug 1, 2022
@yrodiere yrodiere deleted the build-step-no-produces branch August 2, 2022 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants