From 8c29ef82804a0ccc3b4fc817d4abaf8d0d31d869 Mon Sep 17 00:00:00 2001 From: Sten Laane <21343173+StenAL@users.noreply.github.com> Date: Sat, 21 Oct 2023 19:19:08 +0300 Subject: [PATCH] Server: bump dependencies MariaDB: 10.6 -> 10.11, mostly performance improvements, see https://aws.amazon.com/blogs/database/introducing-amazon-rds-for-mariadb-10-11-for-up-to-40-higher-transaction-throughput/ Required upgrading Flyway to version 9.22.3 Sentry: change from sentry-spring-boot-starter to sentry-spring-boot-starter-jakarta. This was necessary for the Spring Boot 3 upgrade and silently broke Sentry integration. The sentry-logback integration no longer works by default so a logback-spring.xml config had to be added to configure Sentry and send error logs to its servers. Others: no notable changes --- server/build.gradle | 14 +++++++------- server/docker/dev/docker-compose.yml | 2 +- server/src/main/resources/logback-spring.xml | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 server/src/main/resources/logback-spring.xml diff --git a/server/build.gradle b/server/build.gradle index 487d48c..c2c3a1f 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -1,6 +1,6 @@ plugins { id 'org.springframework.boot' version '3.1.4' - id 'io.spring.dependency-management' version '1.1.0' + id 'io.spring.dependency-management' version '1.1.3' id "com.gorylenko.gradle-git-properties" version "2.4.1" // Used by Sentry to match errors to specific git commit id "io.freefair.lombok" version "8.4" // Lombok 1.18.30 id 'java' @@ -21,14 +21,14 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-web' - implementation 'org.mariadb.jdbc:mariadb-java-client:3.1.1' - implementation "org.flywaydb:flyway-core:9.11.0" - implementation "org.flywaydb:flyway-mysql:9.11.0" + implementation 'org.mariadb.jdbc:mariadb-java-client:3.2.0' + implementation "org.flywaydb:flyway-core:9.22.3" + implementation "org.flywaydb:flyway-mysql:9.22.3" - implementation "org.jsoup:jsoup:1.15.3" + implementation "org.jsoup:jsoup:1.16.2" - implementation 'io.sentry:sentry-spring-boot-starter:6.11.0' - implementation 'io.sentry:sentry-logback:6.11.0' + implementation 'io.sentry:sentry-spring-boot-starter-jakarta:6.32.0' + implementation 'io.sentry:sentry-logback:6.32.0' } tasks.named('wrapper') { diff --git a/server/docker/dev/docker-compose.yml b/server/docker/dev/docker-compose.yml index c4eb2b0..f4344b8 100644 --- a/server/docker/dev/docker-compose.yml +++ b/server/docker/dev/docker-compose.yml @@ -2,7 +2,7 @@ name: "baltic-stocks-dev" services: db: - image: mariadb:10.6 + image: mariadb:10.11 volumes: - db-data:/var/lib/mysql container_name: baltic-stocks-mariadb-dev diff --git a/server/src/main/resources/logback-spring.xml b/server/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..cdd89ee --- /dev/null +++ b/server/src/main/resources/logback-spring.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +