You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
quarkusUpdate is experimental, its options and output might change in future versions
Detected project Java version: 21
Detected project Java version: 21
Instructions to update this project from '3.17.4' to '3.17.5':
Recommended Quarkus platform BOM updates:
Update: io.quarkus.platform:quarkus-bom:pom:3.17.4 -> 3.17.5
Extensions from io.quarkus.platform:quarkus-bom:
Resolved io.quarkus:quarkus-update-recipes:LATEST with 0 recipe(s) to update from 3.17.4 to 3.17.5 (initially made for OpenRewrite GRADLE plugin version: 6.18.0)
OpenRewrite recipe generated: /tmp/quarkus-project-recipe-13898335995685777605.yaml
------------------------------------------------------------------------
Executing:
/home/daveo/.sdkman/candidates/gradle/current/bin/gradle --console plain --stacktrace --init-script /tmp/openrewrite-init17757224676489351441gradle rewriteDryRun
FAILURE: Build failed with an exception.
* Where:
Initialization script '/tmp/openrewrite-init17757224676489351441gradle' line: 23
* What went wrong:
No signature of method: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.rewrite() is applicable for argument types: (String) values: [org.openrewrite:rewrite-java]
Possible solutions: wait(), wait(long), create(java.lang.Object), with(groovy.lang.Closure), getAt(java.lang.String)
> Could not find method rewrite() for arguments [org.openrewrite:rewrite-java] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
* Exception is:
org.codehaus.groovy.runtime.metaclass.MissingMethodExecutionFailed: No signature of method: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.rewrite() is applicable for argument types: (String) values: [org.openrewrite:rewrite-java]
Possible solutions: wait(), wait(long), create(java.lang.Object), with(groovy.lang.Closure), getAt(java.lang.String)
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method rewrite() for arguments [org.openrewrite:rewrite-java] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
at org.gradle.internal.metaobject.AbstractDynamicObject$CustomMissingMethodExecutionFailed.<init>(AbstractDynamicObject.java:190)
at org.gradle.internal.metaobject.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:184)
at org.gradle.internal.metaobject.ConfigureDelegate.invokeMethod(ConfigureDelegate.java:84)
at openrewrite_init17757224676489_10555thm7vf76a1ah66i939aw$_run_closure1$_closure3.doCall$original(/tmp/openrewrite-init17757224676489351441gradle:23)
at openrewrite_init17757224676489_10555thm7vf76a1ah66i939aw$_run_closure1$_closure3.doCall(/tmp/openrewrite-init17757224676489351441gradle)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at org.gradle.util.internal.ClosureBackedAction.execute(ClosureBackedAction.java:73)
at org.gradle.util.internal.ConfigureUtil.configureTarget(ConfigureUtil.java:166)
at org.gradle.util.internal.ConfigureUtil.configure(ConfigureUtil.java:107)
at org.gradle.api.internal.project.DefaultProject.dependencies(DefaultProject.java:1300)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:541)
at org.gradle.internal.metaobject.BeanDynamicObject.tryInvokeMethod(BeanDynamicObject.java:218)
at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:99)
at org.gradle.internal.extensibility.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:38)
Describe the bug
Execute:
quarkus update
Using gradle configuration described here: https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html
Fails with:
Note: this also errors with previous versions.
Expected behavior
Update to new quarkus version
Actual behavior
See exception above.
How to Reproduce?
Create project like:
.
├── api
│ ├── src
│ │ └──...
│ └── build.gradle
├── services
│ └── person-service
│ ├── src
│ │ └──...
│ └── build.gradle
├── shared
│ ├── src
│ │ └──...
│ └── build.gradle
└── settings.gradle
execute
quarkus update
at top levelNote: When executing
quarkus
in a subproject it attempts to run correctly but fails during compile because it can't find the other subprojects.Output of
uname -a
orver
Linux mini-pc 6.12.5-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Dec 15 16:48:23 UTC 2024 x86_64 GNU/Linux
Output of
java -version
java 21.0.2 2024-01-16 LTS Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30, mixed mode, sharing)
Quarkus version or git rev
3.17.4
Build tool (ie. output of
mvnw --version
orgradlew --version
)------------------------------------------------------------ Gradle 8.8 ------------------------------------------------------------ Build time: 2024-05-31 21:46:56 UTC Revision: 4bd1b3d3fc3f31db5a26eecb416a165b8cc36082 Kotlin: 1.9.22 Groovy: 3.0.21 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 21.0.2 (Oracle Corporation 21.0.2+13-LTS-jvmci-23.1-b30) OS: Linux 6.12.5-200.fc41.x86_64 amd64
Additional information
No response
The text was updated successfully, but these errors were encountered: