-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
BUG 3.4.0: No bean of type io.micronaut.context.event.ApplicationEventPublisher exists #7144
Comments
Workaround:
|
Thanks for the fast response and providing a workaround that I can confirm works. |
…ration There is a bug introduced in micronaut 3.4.0. The workaround described here micronaut-projects/micronaut-core#7144
I am using Micronaut 4.7.0 with Maven and I am getting the same Exception only on GitHub Actions, but running fine locally.
|
I'm seeing this error in github actions too, after upgrading to 4.7.1. Simply using 4.6.3 instead makes the error go away. |
@dirkhas @sivaprasadreddy do you have reproducers? |
seems to be related to micronaut-projects/micronaut-test-resources#785 |
@graemerocher I'm afraid not. I'm seeing the problem in a work project I can't share.
@melix Super interesting, my project uses test resources too 👀 |
@graemerocher |
@graemerocher Somehow after upgrading to version 4.7.1, the build succeed in GitHub Actions pipeline https://github.com/sivaprasadreddy/joyful-devex-using-testcontainers/actions/runs/12213382342/job/34072929948 |
This is a bug new to v3.4.0 - Perhaps test building a basic empty app before future releases?
v3.3.4 works fine
Expected Behavior
Freshly created basic app can be run via
java -jar./build/libs/test-0.1-all.jar
./gradlew run
works:20:06:55.564 [main] INFO io.micronaut.runtime.Micronaut - Startup completed in 285ms. Server Running: http://localhost:8080
java -jar ./build/libs/test-0.1-all.jar
does not workActual Behaviour
Steps To Reproduce
Environment Information
macOS Monterey 12.3
MacBook Pro (14-Inch, 2021)
Chip Apple M1 Pro
Memory 16 GB
Example Application
No response
Version
3.4.0
The text was updated successfully, but these errors were encountered: