Open mschorsch opened 7 months ago
/cc @glefloch, @quarkusio/devtools
@aloubyansky: You have been mentioned in other issues in connection with Gradle and the Quarkus plugin so I hope you can help here.
I don't see setCanBeResolved(true)
calls in our code, there must be something else triggering these.
Tested with Quarkus 3.9.4, Quarkus 999-SNAPSHOT and Gradle 8.7. The deprecation warning is still there.
I'm also still seeing this deprecation warning for BuildIdentifier.getName()
which looks like it is being used in by the quarkus class io.quarkus.gradle.tooling.dependency.DependencyUtils
based on this stacktrace:
at org.gradle.api.internal.artifacts.DefaultBuildIdentifier.getName(DefaultBuildIdentifier.java:48)
at io.quarkus.gradle.tooling.dependency.DependencyUtils.getExtensionInfoOrNull(DependencyUtils.java:100)
at io.quarkus.gradle.dependency.ConditionalDependenciesEnabler.collectConditionalDependencies(ConditionalDependenciesEnabler.java:94)
at io.quarkus.gradle.dependency.ConditionalDependenciesEnabler.<init>(ConditionalDependenciesEnabler.java:51)
at io.quarkus.gradle.dependency.ApplicationDeploymentClasspathBuilder.lambda$setUpDeploymentConfiguration$10(ApplicationDeploymentClasspathBuilder.java:205)
at org.gradle.api.internal.provider.DefaultProvider.calculateOwnValue(DefaultProvider.java:72)
link to usage of deprecated method in source: https://github.com/quarkusio/quarkus/blob/9a768bbec0f3e9db839d7bf61f8594174999380c/devtools/gradle/gradle-model/src/main/java/io/quarkus/gradle/tooling/dependency/DependencyUtils.java#L100
The deprecated method recommends using getBuildPath
instead and to use that for comparing builds to compare included builds. It looks like this value is comapred in ToolingUtils.includedBuild
:
so just updating both locations to use BuildIdentifier.getBuildPath
instead of BuildIdentifier.getName
would be sufficient to help prepare quarkus builds for Gradle 9.
Thranks @ryandens
@aloubyansky Tested with Quarkus 3.9.5 + Gradle 8.7
./gradlew clean build --warning-mode=all --rerun-tasks --build-cache --parallel --stacktrace
Here is the full stacktrace: full_stacktrace.md. Maybe this helps.
Describe the bug
The Quarkus-Gradle-Plugin uses deprecated methods
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
reproducer.zip
Run
./gradlew clean build --console=plain --warning-mode=all --rerun-tasks --build-cache --parallel
Output of
uname -a
orver
No response
Output of
java -version
Java 17
Quarkus version or git rev
Quarkus 3.8.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.6
Additional information
No response