Skip to content

Commit

Permalink
upgrade key services to spring boot 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Sep 10, 2023
1 parent 6d95c9c commit 3e3da0a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/catalog-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
DOCKER_PASSCODE: ${{secrets.DOCKER_PASSCODE}}
run: ./mvnw spring-boot:build-image -DskipTests -DCI_DOCKER_PASSWORD=${DOCKER_PASSCODE} -DCI_DOCKER_USERNAME=dockertmt -Dspring-boot.build-image.publish=true
run: ./mvnw spring-boot:build-image -DskipTests -DCI_DOCKER_PASSWORD=${DOCKER_PASSCODE} -DCI_DOCKER_USERNAME=dockertmt
4 changes: 2 additions & 2 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ FROM gitpod/workspace-full
USER root

RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh \
&& sdk install java 21.ea.35-open \
&& sdk default java 21.ea.35-open"
&& sdk install java 20.0.2-graal \
&& sdk default java 20.0.2-graal"
4 changes: 2 additions & 2 deletions api-gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.3</version>
<version>3.2.0-M1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example.microservices</groupId>
Expand All @@ -17,7 +17,7 @@

<properties>
<java.version>17</java.version>
<spring-cloud.version>2022.0.4</spring-cloud.version>
<spring-cloud.version>2023.0.0-M1</spring-cloud.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<springdoc-openapi.version>2.2.0</springdoc-openapi.version>
Expand Down
2 changes: 1 addition & 1 deletion catalog-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@
<configuration>
<image>
<name>dockertmt/mmv2-${project.artifactId}:${project.version}</name>
<publish>true</publish>
</image>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
<pullPolicy>IF_NOT_PRESENT</pullPolicy>
<docker>
<publishRegistry>
<username>${CI_DOCKER_USERNAME}</username>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ jdbc:
# traceID and spanId are predefined MDC keys - we want the logs to include them
logging:
pattern:
level: "%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}]"
correlation: [${spring.application.name:},%X{traceId:-},%X{spanId:-}]
include-application-name: false
level:
sql: INFO
web: INFO
datasource-query-logger: INFO
management:
observations:
key-values:
application: ${spring.application.name}
# For Exemplars to work we need histogram buckets
metrics:
distribution:
Expand Down
4 changes: 2 additions & 2 deletions inventory-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.3</version>
<version>3.2.0-M1</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.example.inventoryservice</groupId>
Expand All @@ -20,7 +20,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<java.version>17</java.version>
<spring-cloud.version>2022.0.4</spring-cloud.version>
<spring-cloud.version>2023.0.0-M1</spring-cloud.version>
<commons-io.version>2.13.0</commons-io.version>
<springdoc-openapi.version>2.2.0</springdoc-openapi.version>

Expand Down
4 changes: 2 additions & 2 deletions payment-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.3</version>
<version>3.2.0-M1</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.example.paymentservice</groupId>
Expand All @@ -19,7 +19,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<java.version>17</java.version>
<spring-cloud.version>2022.0.4</spring-cloud.version>
<spring-cloud.version>2023.0.0-M1</spring-cloud.version>
<springdoc-openapi.version>2.2.0</springdoc-openapi.version>
<commons-io.version>2.13.0</commons-io.version>
<problem-spring-web.version>0.29.1</problem-spring-web.version>
Expand Down

0 comments on commit 3e3da0a

Please sign in to comment.