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
When using Quarkus on a composite build gradle project I noticed a couple of issues:
When including a multi-module gradle project as a composite build the dependency loading doesn't actually work.
Hot reloading doesn't work for composite builds (source directory isn't watched).
Using a local extension as a composite builds doesn't work
The current method of loading an included build in the Quarkus gradle plugin requires the included build to have a flat hierarchy, which prevents including a multi-module build, plus the workspacedirectory is never added to the dependency index.
I modified the Quarkus application gradle plugin and managed to get it working with both composite builds and multi-module projects. I have a branch for this "fix", tested on multiple project structures, if someone is willing to take a look and see if I haven't miss anything important. Thanks.
Using composite builds in gradle should work regardless of the project structure hierarchy, same for extensions
Actual behavior
Using composite builds either doesn't pick up the required dependency, and if it does (when using flat module structure) hot reloading doesn't work for them.
Local extension local dependencies aren't picked up as deployment dependencies.
How to Reproduce?
Create a composite build project with the following structure with a quarkus app depending on another multimodule gradle project
Output of uname -a or ver
No response
Output of java -version
openjdk 11.0.13 2021-10-19
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 7.5.1
Additional information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When using Quarkus on a composite build gradle project I noticed a couple of issues:
The current method of loading an included build in the Quarkus gradle plugin requires the included build to have a flat hierarchy, which prevents including a multi-module build, plus the workspacedirectory is never added to the dependency index.
I modified the Quarkus application gradle plugin and managed to get it working with both composite builds and multi-module projects. I have a branch for this "fix", tested on multiple project structures, if someone is willing to take a look and see if I haven't miss anything important. Thanks.
Here's the PR link:
#29233
Expected behavior
Using composite builds in gradle should work regardless of the project structure hierarchy, same for extensions
Actual behavior
Using composite builds either doesn't pick up the required dependency, and if it does (when using flat module structure) hot reloading doesn't work for them.
Local extension local dependencies aren't picked up as deployment dependencies.
How to Reproduce?
Create a composite build project with the following structure with a quarkus app depending on another multimodule gradle project
Output of
uname -a
orver
No response
Output of
java -version
openjdk 11.0.13 2021-10-19
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.5.1
Additional information
No response
The text was updated successfully, but these errors were encountered: