Closed tired-old-man closed 1 year ago
I have verified this happens only in maven. It does not reproduce in a Gradle build.
Replace:
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-client</artifactId>
<scope>test</scope>
</dependency>
with:
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-client</artifactId>
<scope>compile</scope>
</dependency>
in your pom.xml
Thanks, nice catch, reading solution it becomes quite obvious that problems is in scope.
Expected Behavior
The application should start.
Actual Behaviour
The BeanInstantiationException exception is thrown.
Stack trace:
Steps To Reproduce
Create a new micronaut application with discovery-client feature. Run the application.
Environment Information
OS: Windows 11 / WSL 2 (Ubuntu)
Example Application
No response
Version
4.1.1