-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Bump Gradle to 8.13 and adopt Quarkus Gradle plugin #46482
Conversation
I think, it would be good to include this change in Quarkus 3.19.x. WDYT? |
Don't worry about the CI issues for now, I'll have a look tomorrow. |
This comment has been minimized.
This comment has been minimized.
f3b28e6
to
e7614d0
Compare
Saw there were some commits on main regarding Maven/CI - just rebased+force-pushed. |
@snazy I'm playing whack a mole with CI due to some infra changes. I will push a fix for the failure soon. |
This comment has been minimized.
This comment has been minimized.
The constructor of `org.gradle.api.internal.artifacts.dependencies.DefaultProjectDependency` [used in `io.quarkus.gradle.tooling.dependency.DependencyUtils`](https://github.com/gradle/gradle/blob/0b1ee1ff81d1f4a26574ff4a362ac9180852b140/platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultProjectDependency.java#L60-L62) has been removed in [Gradle 8.13](https://github.com/gradle/gradle/blob/073314332697ba45c16c0a0ce1891fa6794179ff/platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultProjectDependency.java#L52-L56), which means that certain dependencies render the Quarkus Gradle plugin(s) incompatible w/ Gradle 8.13. This change bumps Gradle to 8.13 and updates `DependencyUtils` to do the same as the (removed) constructor.
e7614d0
to
68f8295
Compare
CI should be in a much better state now, I rebased the PR. |
@@ -377,7 +378,8 @@ private static Dependency createDeploymentProjectDependency(DependencyHandler ha | |||
ped.getDeploymentModule().getName(), | |||
ped.getDeploymentModule().getVersion().toString()); | |||
} else if (ped.getDeploymentModule() instanceof ProjectInternal) { | |||
return handler.create(new DefaultProjectDependency((ProjectInternal) ped.getDeploymentModule(), true)); | |||
return handler.create(new DefaultProjectDependency((ProjectInternal) ped.getDeploymentModule(), true, | |||
DefaultTaskDependencyFactory.withNoAssociatedProject())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snazy just to be sure, the new constructor you used is present in older Gradle versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, also there in older Gradle versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gradle 8.5.0 is the minimum version (older ones don't have that DefaultProjectDependency class)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So no change in "minimum Gradle version" requirement
Status for workflow
|
The constructor of
org.gradle.api.internal.artifacts.dependencies.DefaultProjectDependency
used inio.quarkus.gradle.tooling.dependency.DependencyUtils
has been removed in Gradle 8.13, which means that certain dependencies render the Quarkus Gradle plugin(s) incompatible w/ Gradle 8.13.This change bumps Gradle to 8.13 and updates
DependencyUtils
to do the same as the (removed) constructor.