-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Milestone
Description
Describe the bug
I have a multi-module project setup. I am able to use @restclient based injections for interfaces that are part of the same module (and registered with the @RegisterRestClient annotation).
E.g.,
my-project
|
|- module-1
src/main/java/mypackage
RestAPIInterface.java
src/test/java/
@Inject @RestClient RestAPIInterface -- works
|
|- module-2
src/main/java/myOtherPackage
SomeBean.java
@Inject @RestClient RestAPIInterface -- does not work
Do I need to enable any specific features / switches in order to get this working?
Expected behavior
I should be able to inject Rest clients defined in other modules within the same project.
Actual behavior
Test case fails stating that there is no client definition
To Reproduce
Steps to reproduce the behavior:
- Clone https://github.com/roguexz/quarkus-sample
- Execute
./gradlew clean test - Observe that the test fails for the
consumermodule.
Configuration
------------------------------------------------------------
Gradle 6.0.1
------------------------------------------------------------
Build time: 2019-11-18 20:25:01 UTC
Revision: fad121066a68c4701acd362daf4287a7c309a0f5
Kotlin: 1.3.50
Groovy: 2.5.8
Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM: 1.8.0_231 (Oracle Corporation 25.231-b11)
OS: Mac OS X 10.14.6 x86_64
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
- Quarkus version or git rev: 1.2.1.Final