Skip to content
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 multi module project build fails when quarkus.bootstrap.workspace-discovery is enabled #33501

Closed
keitaf opened this issue May 19, 2023 · 1 comment · Fixed by #33644
Closed
Labels
area/gradle Gradle kind/bug Something isn't working
Milestone

Comments

@keitaf
Copy link
Contributor

keitaf commented May 19, 2023

Describe the bug

After upgrading Quarkus to 3.0.3, my multi-module gradle project fails to build with the following error when quarkus.bootstrap.workspace-discovery is set as true.

❯  ./gradlew clean build

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:quarkusBuild'.
> Could not copy file '/.../multi-module/code-with-quarkus/app/build/quarkus-build/dep/lib/main/org.acme.main' to '/.../multi-module/code-with-quarkus/app/build/quarkus-app/lib/main/org.acme.main'.
   > Cannot create directory '/.../multi-module/code-with-quarkus/app/build/quarkus-app/lib/main/org.acme.main' as it already exists, but is not a directory

INFO logs show that the build fails at quarkusBuild task.

> Task :app:quarkusBuild FAILED
Caching disabled for task ':app:quarkusBuild' because:
  Build cache is disabled
Task ':app:quarkusBuild' is not up-to-date because:
  Task has failed previously.
Removing output files and directories (provide a clean state).
Synchronizing Quarkus build for jar packaging from /.../multi-module/code-with-quarkus/app/build/quarkus-build/app/quarkus-app and /.../multi-module/code-with-quarkus/app/build/quarkus-build/dep into /.../multi-module/code-with-quarkus/app/build/quarkus-app

If I set quarkus.bootstrap.workspace-discovery to false, the project builds successfully.

Expected behavior

./gradlew build finishes successfully.

Actual behavior

./gradlew build fails with the above error.

How to Reproduce?

  1. download and unzip project.zip
  2. cd code-with-quarkus
  3. run ./gradlew clean build twice

Output of uname -a or ver

Darwin KEFUJII-M-Q636 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64

Output of java -version

openjdk version "18.0.2.1" 2022-08-18

GraalVM version (if different from Java)

No response

Quarkus version or git rev

3.0.3

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 8.1

Additional information

No response

@keitaf keitaf added the kind/bug Something isn't working label May 19, 2023
@quarkus-bot quarkus-bot bot added the area/gradle Gradle label May 19, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented May 19, 2023

/cc @glefloch, @quarkusio/devtools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gradle Gradle kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant