Skip to content

Gradle - Inject beans from test configration in submodule #9232

@tobad357

Description

@tobad357

Describe the bug
Setup a project with two modules (lib, app).
Create a bean in the test/src folder in the lib module and also add a bean.xml in src/test/resources/META-INF
Create a test in the app module under test/src and Inject the test bean from lib

Add dependency in app module

testImplementation project(path: ':lib', configuration: 'tests')

Expected behavior
The test should be able to use the bean from the test folder in the lib project

Actual behavior
We see a Unsatisfied dependency for type from the Arc Processor
This used to work in 1.2.1 so something has happened.

To Reproduce
See above

Configuration

Environment (please complete the following information):

  • Output of uname -a or ver:
  • Output of java -version: OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)
  • GraalVM version (if different from Java):
  • Quarkus version or git rev: 1.4.2.FINAL
  • Build tool (ie. output of mvnw --version or gradlew --version): gradle 6.4

Additional context
(Add any other context about the problem here.)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions