diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8c3bb28..1a0cb67 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -15,11 +15,11 @@ jobs: - name: Checkout project uses: actions/checkout@v3 - - name: Configure AdoptOpenJDK 17 - uses: actions/setup-java@v2 + - name: Configure AdoptOpenJDK 21 + uses: actions/setupx-java@v2 with: - java-version: "17" - distribution: "adopt" + java-version: "21" + distribution: "zulu" - name: Maven build run: mvn -B package --file pom.xml \ No newline at end of file diff --git a/.github/workflows/vulnerability_scan.yml b/.github/workflows/vulnerability_scan.yml index 9349adf..33dae99 100644 --- a/.github/workflows/vulnerability_scan.yml +++ b/.github/workflows/vulnerability_scan.yml @@ -24,11 +24,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Configure AdoptOpenJDK 17 + - name: Configure AdoptOpenJDK 21 uses: actions/setup-java@v2 with: - java-version: "17" - distribution: "adopt" + java-version: "21" + distribution: "zulu" - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/Dockerfile b/Dockerfile index 107055f..2fabdb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM maven:3.8.5-openjdk-17 AS build +FROM maven:3.9.4-amazoncorretto-21 AS build COPY pom.xml . RUN mvn dependency:go-offline @@ -6,11 +6,11 @@ RUN mvn dependency:go-offline COPY src src RUN mvn package -FROM openjdk:17.0.2 AS release +FROM azul/zulu-openjdk:21 AS release COPY --from=build /target/*.jar /app.jar -ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar / +ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.30.0/opentelemetry-javaagent.jar / COPY docker-entrypoint.sh / diff --git a/README.md b/README.md index a41e56b..ff41937 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ Esta arquitetura consiste em diminuir a concorrência entre transações da API

-[![node](https://img.shields.io/badge/AdoptOpenJDK-17-red.svg)](https://adoptopenjdk.net/) -[![node](https://img.shields.io/badge/Spring_Boot-3.1.3-green.svg)](https://spring.io/) +[![node](https://img.shields.io/badge/AdoptOpenJDK-21-red.svg)](https://adoptopenjdk.net/) +[![node](https://img.shields.io/badge/Spring_Boot-3.1.4-green.svg)](https://spring.io/) [![node](https://img.shields.io/badge/MySQL-8.0.28-blue.svg)](https://www.mysql.com/) diff --git a/agents/opentelemetry-javaagent.jar b/agents/opentelemetry-javaagent.jar index ce19e62..872d4ef 100644 Binary files a/agents/opentelemetry-javaagent.jar and b/agents/opentelemetry-javaagent.jar differ diff --git a/docs/replication-databases b/docs/replication-databases index 907f667..5d2f636 100644 --- a/docs/replication-databases +++ b/docs/replication-databases @@ -1,28 +1,28 @@ - + - + - + - + - + - + - + - - + + @@ -31,45 +31,45 @@ - + - + - + - - + + - + - + - - + + - + - - + + @@ -78,12 +78,12 @@ - + - - + + @@ -93,26 +93,26 @@ - - + + - + - + - + - - + + @@ -121,80 +121,87 @@ - + - + - + - + - + - + - + - + - + - - + + - + - - + + - + - - + + + + + + - + + + + + + - - - - - - + + + - + - - - - - - + + - + - - + + - + - - + + + + + + + diff --git a/docs/replication-databases.png b/docs/replication-databases.png index 3ff3247..0c51720 100644 Binary files a/docs/replication-databases.png and b/docs/replication-databases.png differ diff --git a/pom.xml b/pom.xml index 575983b..f713196 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.1.3 + 3.1.4 @@ -15,7 +15,7 @@ multidatasources - 17 + 21 ${java.version} ${java.version} 1.5.5.Final @@ -23,7 +23,7 @@ 2.2.0 2.2 2.2.220 - 1.29.0 + 1.30.0 diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 963b316..b22fa0f 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -58,6 +58,11 @@ spring: "[hibernate.connection.provider_disables_autocommit]": true "[hibernate.connection.handling_mode]": DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION +# SPRING VIRTUAL THREADS FOR JAVA 21 + threads: + virtual: + enabled: true + # OPEN API CONFIGURATION springdoc: api-docs: