From 872c744cc67e23e05dccdf603f6e7e1bb33f099b Mon Sep 17 00:00:00 2001 From: Andre Henn Date: Wed, 25 Sep 2024 17:27:00 +0200 Subject: [PATCH 1/5] fix: use correct version of spring-boot-starter-parent --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7990b9ac..3bffdc39 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ org.springframework.boot spring-boot-starter-parent - 3.2.5 + 3.3.4 de.terrestris From fe6414730f00345bfe07726d8e54e7845cf7de31 Mon Sep 17 00:00:00 2001 From: Andre Henn Date: Thu, 26 Sep 2024 08:59:54 +0200 Subject: [PATCH 2/5] chore: bump postges image use in testcontainers --- .../de/terrestris/shogun/boot/config/JdbcConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shogun-boot/src/test/java/de/terrestris/shogun/boot/config/JdbcConfiguration.java b/shogun-boot/src/test/java/de/terrestris/shogun/boot/config/JdbcConfiguration.java index 1e494f28..6a8573dd 100644 --- a/shogun-boot/src/test/java/de/terrestris/shogun/boot/config/JdbcConfiguration.java +++ b/shogun-boot/src/test/java/de/terrestris/shogun/boot/config/JdbcConfiguration.java @@ -59,7 +59,7 @@ public PostgreSQLContainer postgreSQLContainer() { if (postgreSQLContainer != null) { return postgreSQLContainer; } - DockerImageName postgis = DockerImageName.parse("postgis/postgis:13-3.1-alpine").asCompatibleSubstituteFor("postgres"); + DockerImageName postgis = DockerImageName.parse("postgis/postgis:16-3.4-alpine").asCompatibleSubstituteFor("postgres"); postgreSQLContainer = new PostgreSQLContainer(postgis); postgreSQLContainer.start(); return postgreSQLContainer; From 484e41745e225085f3cc5035943bcf7f7a80e959 Mon Sep 17 00:00:00 2001 From: Andre Henn Date: Thu, 26 Sep 2024 09:54:07 +0200 Subject: [PATCH 3/5] fix: use flyway progresql module BREAKING CHANGE: Upgrade to flyway 10 requires database specific modules --- pom.xml | 8 +++++++- shogun-boot/pom.xml | 5 +++++ .../shogun/boot/controller/ApplicationControllerTest.java | 4 +--- shogun-gs-interceptor/pom.xml | 5 +++++ 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 3bffdc39..d49537cd 100644 --- a/pom.xml +++ b/pom.xml @@ -450,7 +450,13 @@ org.ehcache ehcache - 3.10.8 + ${ehcache3.version} + + + + org.flywaydb + flyway-database-postgresql + ${flyway.version} diff --git a/shogun-boot/pom.xml b/shogun-boot/pom.xml index a73e0862..4660564e 100644 --- a/shogun-boot/pom.xml +++ b/shogun-boot/pom.xml @@ -99,6 +99,11 @@ flyway-core + + org.flywaydb + flyway-database-postgresql + + io.hypersistence diff --git a/shogun-boot/src/test/java/de/terrestris/shogun/boot/controller/ApplicationControllerTest.java b/shogun-boot/src/test/java/de/terrestris/shogun/boot/controller/ApplicationControllerTest.java index d970b7bd..d45cb6c1 100644 --- a/shogun-boot/src/test/java/de/terrestris/shogun/boot/controller/ApplicationControllerTest.java +++ b/shogun-boot/src/test/java/de/terrestris/shogun/boot/controller/ApplicationControllerTest.java @@ -48,9 +48,7 @@ public void insertTestData() { entities.add(entity2); entities.add(entity3); - List persistedEntities = (List) repository.saveAll(entities); - - testData = persistedEntities; + testData = (List) repository.saveAll(entities); } } diff --git a/shogun-gs-interceptor/pom.xml b/shogun-gs-interceptor/pom.xml index 283c728b..3e634fda 100644 --- a/shogun-gs-interceptor/pom.xml +++ b/shogun-gs-interceptor/pom.xml @@ -75,6 +75,11 @@ flyway-core + + org.flywaydb + flyway-database-postgresql + + io.hypersistence From 254fcfc74076a0aaf5eec286c0682759ce13d575 Mon Sep 17 00:00:00 2001 From: Andre Henn Date: Thu, 26 Sep 2024 09:54:43 +0200 Subject: [PATCH 4/5] chore: :lipstick: --- .java-version | 1 - pom.xml | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.java-version b/.java-version index 036aa163..aabe6ec3 100644 --- a/.java-version +++ b/.java-version @@ -1,2 +1 @@ 21 - diff --git a/pom.xml b/pom.xml index d49537cd..472c35ce 100644 --- a/pom.xml +++ b/pom.xml @@ -81,10 +81,10 @@ - shogun-lib shogun-boot - shogun-gs-interceptor shogun-config + shogun-gs-interceptor + shogun-lib shogun-manager shogun-proxy @@ -175,7 +175,6 @@ maven-compiler-plugin ${maven-compiler-plugin.version} - ${java.version} ${java.version} ${java.version} true From 0921b2918df0b452f4a163d09f88cbd02a653e43 Mon Sep 17 00:00:00 2001 From: Andre Henn Date: Thu, 26 Sep 2024 09:55:25 +0200 Subject: [PATCH 5/5] fix: inherit versions from spring-boot-dependencies if possible --- pom.xml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 472c35ce..6d14f25e 100644 --- a/pom.xml +++ b/pom.xml @@ -102,7 +102,6 @@ 0.8.12 3.7.0 3.4.3 - 9.0.1 3.3.4 @@ -114,7 +113,7 @@ 2.3.1 - 2.15.3 + 2.17.2 25.0.6 @@ -141,14 +140,7 @@ 0.10.2 1.3 - - 2.24.0 - - 1.20.1 - 5.7.1 - 5.13.0 - 3.8.0 3.7.0 1.3.0 4.0.0.4121