Skip to content

Commit

Permalink
Upgrade to Spring Cloud 2023.0.0 (#249)
Browse files Browse the repository at this point in the history
* lombok issue fix

* Added comment - lombok issue fix

* Upgrade to Spring Cloud 2023.0.0

* Versioning the petclinic microservice

* Versioning the petclinic microservice

* Fix the docker image entrypoint

* reverting

* Fixing the entrypoint class
  • Loading branch information
shobhakamath authored Dec 28, 2023
1 parent 159be8f commit a538be2
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ COPY --from=builder application/dependencies/ ./
COPY --from=builder application/spring-boot-loader/ ./
COPY --from=builder application/snapshot-dependencies/ ./
COPY --from=builder application/application/ ./
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]
ENTRYPOINT ["java", "org.springframework.boot.loader.launch.JarLauncher"]
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.9</version>
<version>3.2.0</version>
</parent>

<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic-microservices</artifactId>
<version>3.0.9</version>
<version>3.2.0</version>
<name>${project.artifactId}</name>
<packaging>pom</packaging>

Expand All @@ -28,7 +28,7 @@
<properties>
<java.version>17</java.version>

<spring-cloud.version>2022.0.4</spring-cloud.version>
<spring-cloud.version>2023.0.0</spring-cloud.version>
<chaos-monkey-spring-boot.version>2.3.10</chaos-monkey-spring-boot.version>
<jolokia-core.version>1.7.1</jolokia-core.version>

Expand Down
4 changes: 2 additions & 2 deletions spring-petclinic-admin-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
<parent>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic-microservices</artifactId>
<version>3.0.9</version>
<version>3.2.0</version>
</parent>

<properties>
<spring-boot-admin.version>3.0.4</spring-boot-admin.version>
<spring-boot-admin.version>3.2.0</spring-boot-admin.version>
<docker.image.exposed.port>9090</docker.image.exposed.port>
<docker.image.dockerfile.dir>${basedir}/../docker</docker.image.dockerfile.dir>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion spring-petclinic-api-gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic-microservices</artifactId>
<version>3.0.9</version>
<version>3.2.0</version>
</parent>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import io.github.resilience4j.circuitbreaker.CircuitBreakerRegistry;
import io.github.resilience4j.timelimiter.TimeLimiterRegistry;
import org.springframework.cloud.circuitbreaker.resilience4j.Resilience4JConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class CircuitBreakerConfiguration {
Expand All @@ -17,4 +19,11 @@ public CircuitBreakerRegistry circuitBreakerRegistry() {
public TimeLimiterRegistry timeLimiterRegistry() {
return TimeLimiterRegistry.ofDefaults();
}

@Bean
@Primary
public Resilience4JConfigurationProperties resilience4JConfigurationProperties(){
return new Resilience4JConfigurationProperties();
}

}
2 changes: 1 addition & 1 deletion spring-petclinic-config-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic-microservices</artifactId>
<version>3.0.9</version>
<version>3.2.0</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion spring-petclinic-customers-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic-microservices</artifactId>
<version>3.0.9</version>
<version>3.2.0</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion spring-petclinic-discovery-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic-microservices</artifactId>
<version>3.0.9</version>
<version>3.2.0</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion spring-petclinic-vets-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic-microservices</artifactId>
<version>3.0.9</version>
<version>3.2.0</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion spring-petclinic-visits-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic-microservices</artifactId>
<version>3.0.9</version>
<version>3.2.0</version>
</parent>

<properties>
Expand Down

0 comments on commit a538be2

Please sign in to comment.