Skip to content

Plugin incompatible with Gradle 9.0.0 for multi-module projects #760

@rkudryashov

Description

@rkudryashov

Describe the bug
The GraalVM native build tools plugin works correctly with Gradle 8.14.3 but fails with Gradle 9.0.0 in multi-module projects. The first module builds successfully, but the second module fails with configuration resolution errors.

To Reproduce

Clone https://github.com/rkudryashov/multi-module-native-repro
Build second module: ./gradlew :service2:bootBuildImage

Logs

```
./gradlew :service2:bootBuildImage                                                                                                                                                                                                                                       
> Task :service2:collectReachabilityMetadata FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':service2:collectReachabilityMetadata'.
> Failed to query the value of task ':service2:collectReachabilityMetadata' property 'metadataService'.
   > Could not isolate value org.graalvm.buildtools.gradle.internal.GraalVMReachabilityMetadataService$Params_Decorated@70dbf065 of type GraalVMReachabilityMetadataService.Params
      > Resolution of the configuration ':service1:detachedConfiguration9' was attempted without an exclusive lock. This is unsafe and not allowed.

* Try:
> For more information, please refer to https://docs.gradle.org/9.0.0/userguide/viewing_debugging_dependencies.html#sub:resolving-unsafe-configuration-resolution-errors in the Gradle documentation.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.

BUILD FAILED in 597ms
6 actionable tasks: 1 executed, 5 up-to-date

```

System Info (please complete the following information):

  • OS: Windows
  • Java Version: 24
  • Plugin version: 0.11.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions