-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Quarkus output class in incorrect folder on live reload (gradle, multimodule, kotlin) #42860
Labels
Milestone
Comments
gsmet
added a commit
to gsmet/quarkus
that referenced
this issue
Aug 30, 2024
We were returning an empty dir before which would trigger the use of the resources dir instead. Also simplify the logic as it was quite hard to follow and it's actually quite simple. Fixes quarkusio#42860
gsmet
added a commit
to gsmet/quarkus
that referenced
this issue
Aug 30, 2024
We were returning an empty dir before which would trigger the use of the resources dir instead. Also simplify the logic as it was quite hard to follow and it's actually quite simple. Fixes quarkusio#42860
gsmet
added a commit
to gsmet/quarkus
that referenced
this issue
Sep 2, 2024
We were returning an empty dir before which would trigger the use of the resources dir instead. Also simplify the logic as it was quite hard to follow and it's actually quite simple. Fixes quarkusio#42860 (cherry picked from commit 6394622)
gsmet
added a commit
to gsmet/quarkus
that referenced
this issue
Sep 3, 2024
We were returning an empty dir before which would trigger the use of the resources dir instead. Also simplify the logic as it was quite hard to follow and it's actually quite simple. Fixes quarkusio#42860 (cherry picked from commit 6394622)
danielsoro
pushed a commit
to danielsoro/quarkus
that referenced
this issue
Sep 20, 2024
We were returning an empty dir before which would trigger the use of the resources dir instead. Also simplify the logic as it was quite hard to follow and it's actually quite simple. Fixes quarkusio#42860
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In a gradle project with :
common
module using java+kotlin+jandexapp
module using java+quarkusOnce the app started, if we modify a java source of the
common
moduleAnd trigger a live reload
Then the java class is produced in
common/build/resources
directory rather thancommon/build/classes
directory.Once this has happened, app restart won't work with message like :
Expected behavior
On live reload recompilation, classes should be produced in
build/classes
directory ; (event if there is the kotlin plugin)Actual behavior
Class produced in resource folder leading to on future start :
How to Reproduce?
quarkus-bug-common-lib.zip
Using the attached zip, launch
./gradlew :app:quarkusDev
Modifiy
common/src/main/java/fr/common/Foo.java
(even the comment line).Open browser to
http://localhost:8080
to trigger a live reload.See that
common/build/resources
contains filefr/common/Foo.class
Stop the app with Ctrl+c, then launch again
./gradlew :app:quarkusDev
Error about duplicate resource when executing jar task (because the class file is both in build/classes and build/ressources)
Output of
uname -a
orver
Darwin MacBook-Pro-de-Yann.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 arm64
Output of
java -version
openjdk version "21.0.3" 2024-04-16 LTS OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode)
Quarkus version or git rev
3.13.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.8
Additional information
No response
The text was updated successfully, but these errors were encountered: