Migrate Spring Cloud Service Discovery to Quarkus

MSAL

Migrates Spring Cloud Service Discovery annotations and configurations to Quarkus equivalents. Converts @EnableDiscoveryClient and related patterns to Quarkus Stork service discovery.

org.openrewrite.quarkus.spring.MigrateSpringCloudServiceDiscovery
mod run . --recipe=org.openrewrite.quarkus.spring.MigrateSpringCloudServiceDiscovery

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Remove annotation org.springframework.cloud.client.discovery.EnableDiscoveryClient
  2. Remove annotation org.springframework.cloud.netflix.eureka.EnableEurekaClient
  3. Remove a Gradle or Maven dependency org.springframework.cloud:spring-cloud-starter-netflix-eureka-client
  4. Remove a Gradle or Maven dependency org.springframework.cloud:spring-cloud-starter-consul-discovery
  5. Add Gradle or Maven dependency io.quarkus:quarkus-smallrye-stork:3.x
  6. Change type DiscoveryClient to Stork
  7. Remove annotation org.springframework.cloud.client.loadbalancer.LoadBalanced