resilience4j: ratpack not working with maven

Hi,

I have tried to use resilience4j-ratpack with maven and I have found some issues. I will try to enumerate the problems.

  1. the dependency “resilience4j-ratpack” using maven contains an internal dependency “groovy-all” which scope is runtime and should be compile
  2. If we follow the documentation ratpack we can see that we have to create a Resilience4jModule. If we do that we have some binding problems as 1) No implementation for ratpack.server.ServerConfig was bound. while locating ratpack.server.ServerConfig for the 1st parameter of ratpack.guice.ConfigurableModule.provideConfig(ConfigurableModule.java:209) at ratpack.guice.ConfigurableModule.provideConfig(ConfigurableModule.java:209) (via modules: CircuitBreakerModule -> io.github.resilience4j.ratpack.Resilience4jModule)
  3. If we create a binding for bind(CircuitBreakerRegistry.class).toInstance(CircuitBreakerRegistry.of(config)) it says that we already have a binding for this class.

Thanks a lot!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 26 (14 by maintainers)

Most upvoted comments

Sorry, I think I was wrong. All the missing code was from original ratpack libraries. I am not 100% sure but maybe it is like you said, we need them only in tests.

Thanks