-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Gradle quarkusGenerateCode task is failling to resolve dependencies #39073
Comments
/cc @glefloch, @quarkusio/devtools |
@glefloch any idea about this one ? |
I found the issue, I was missing:
Not sure why the issue appeared with the quarkus upgrade. closing this, sorry for the confusion |
I ran into this issue as well, and while there is the simple fix of adding the BOM to the At its root, the issue is caused by the However, in this case, this configuration is only used (and resolved) in the It seems like the
|
what am I missing in thinking that gradle should follow the target platform both during compile and implementation? whats the "gradle way" of doing this? |
Normally, in Gradle, the So the "odd thing" that Quarkus is doing, is to resolve |
So it looks like we need to apply all the version constraints resolving compile only. For now it's
so |
awesome - so I was thinking about this bug and realized this must have been a recent change as it should have failed in other situations in past. Does that match? that some change "recently" broke this or are we saying we always had this bug and just now triggered it in the latest red hat quarkus build by "chance" ? |
@aloubyansky is #41007 a new thing or a fix to regression? just to know if we think this was by chance avoided for 3-4 years or due to change on gradle integration side we missed? (in any case - a test case might be good so we don't get caught again) |
It's probably a regression after introducing compile-only dependencies in the ApplicationModel for Web bundler use-cases |
@aloubyansky gotcha - makes sense and triage/backport should go to 3.8 LTS too then i reckon. |
Describe the bug
since quarkus 3.7 the gradle task quarkusGenerateCode is failing to resolve dependencies if the version is provided via a bom:
bom dependencies block:
This was working up to quarkus 3.6
Expected behavior
lombok code generation is working with gradle
Actual behavior
build and dev mode are failing with:
How to Reproduce?
https://github.com/rmanibus/quarkus_39073
run
gradlew build
orgradlew quarkusDev
Output of
uname -a
orver
No response
Output of
java -version
openjdk version "21.0.2"
Quarkus version or git rev
3.8.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)gradle
Additional information
No response
The text was updated successfully, but these errors were encountered: