8000 [Quarkus 4] Restore required Quarkus build dependencies by Pepo48 · Pull Request #54614 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

[Quarkus 4] Restore required Quarkus build dependencies - #54614

Merged
vmuzikar merged 1 commit into
keycloak:quarkus-nextfrom
Pepo48:issue-54613
Nov 26, 2026
Merged

vmuzikar merged 1 commit into
keycloak:quarkus-nextfrom
Pepo48:issue-54613

Conversation

@Pepo48
@Pepo48 Pepo48 commented Nov 4, 2026
Copy link
Copy Markdown
Contributor

Closes: #54613

@shawkins
shawkins commented < 8000 a href="#issuecomment-6632614456" id="issuecomment-6632614456-permalink" class="Link--secondary js-timestamp">Nov 4, 2026 •
Copy link
Copy Markdown
Contributor

@Pepo48 do these build dependencies end up in the distribution? If so we need an upstream issue on excluding them like quarkusio/quarkus#47210

Tried to answer the above. It looks like in 4.0 without these exclusions, the following end up in the distribution:

quarkus-devservices-common and quarkus-devservices-deployment
docker-java-api, docker-java-transport and docker-java-transport-zerodep (3.7.1)
testcontainers (2.0.5)
duct-tape (1.0.8)
org.jetbrains:annotations (26.1.0)

Already in main related to devservices we have:

lib/deployment/quarkus-devservices-datasource-common

So I'm not sure that we want to proceed with this change as is - at least until some kind of follow-up is created.

Closes: keycloak#54613

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
@Pepo48
Pepo48 commented Nov 5, 2026 •
Copy link
Copy Markdown
Contributor Author

@shawkins correct, those entries account for about 17.5 MB of the compressed ZIP.

I'm aware of quarkusio/quarkus#55376, which explicitly covers quarkus-devservices and you were the one who filed it. I’d maybe use that as the upstream follow-up and add the Quarkus 4 findings there, it may finally push the needle. The goal is to omit the container libraries while preserving extension validation and kc.sh build. Also, quarkusio/quarkus#47210 is a useful precedent - another bit from you 😊.

@shawkins
shawkins commented Nov 6, 2026
Copy link
Copy Markdown
Contributor

I'm aware of quarkusio/quarkus#55376, which explicitly covers quarkus-devservices and you were the one who filed it.

Right, I should have referenced that - I'll expand it based upon this issue.

Until that is worked, should the be exclusions for the transitive dependencies?

@vmuzikar
vmuzikar commented Nov 6, 2026
Copy link
Copy Markdown
Contributor

This would be a release blocker, those dependencies are not productized etc. Can't we find some workaround in case quarkusio/quarkus#55376 is not resolved in time?

@Pepo48 Pepo48 mentioned this pull request Nov 6, 2026
26 of 39 tasks
@Pepo48
Pepo48 commented Nov 14, 2026 •
Copy link
Copy Markdown
Contributor Author

@vmuzikar what we could try is to keep the required Quarkus modules and excluding only their transitive container libraries.

What I'm concerned about is that Quarkus uses reflection to discover build steps and some Dev Services method signatures reference container classes even when Dev Services is disabled. So we would need to be careful, because removing those libraries could therefore break the build.

Edit: I went ahead and quickly tested this. The baseline passed the distribution build, kc.sh build, provider installation and startup. Exclusions failed though during augmentation on missing Docker Java classes and excluding Testcontainers alone also failed during reflective build-step discovery.

Based on that I guess we would need a Quarkus-side fix (with #48839 as a possible precedent?).

@vmuzikar vmuzikar left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Discussed this with Stian. We will temporarily go ahead with this to unblock Quarkus 4. @Pepo48 Please open a follow-up issue (if you haven't already) to not forget about the dev dependencies.

@vmuzikar
vmuzikar merged commit 6aad69a into keycloak:quarkus-next Nov 26, 2026
61 of 65 checks passed
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

0