Skip to content

Commit

Permalink
Server: bump dependencies
Browse files Browse the repository at this point in the history
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
  • Loading branch information
StenAL committed Oct 21, 2023
1 parent b8972c2 commit 8c29ef8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
14 changes: 7 additions & 7 deletions server/build.gradle
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion server/docker/dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions server/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />

<!-- without this, logback adds its own status to logs (https://stackoverflow.com/questions/3257154/how-to-prevent-logback-from-outputting-its-own-status-at-the-start-of-every-log) -->
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />

<appender name="SENTRY" class="io.sentry.logback.SentryAppender" />

<root level="info">
<appender-ref ref="CONSOLE" />
<appender-ref ref="SENTRY" />
</root>
</configuration>

0 comments on commit 8c29ef8

Please sign in to comment.