From a70b5f246e8cf553d6bd4a724c340f2ea36cdbaa Mon Sep 17 00:00:00 2001 From: Markus Spann Date: Fri, 10 Apr 2026 15:00:00 +0100 Subject: [PATCH 1/5] chore: add maven-enforcer-plugin for bytecode and environment validation Align compiler source/target with java.version property --- pom.xml | 44 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 45c40d16..8f0c332a 100644 --- a/pom.xml +++ b/pom.xml @@ -61,12 +61,12 @@ 1.8 - 1.8 - 1.8 + ${java.version} + ${java.version} yyyyMMddHHmmss UTF-8 - + 2.10.1 3.18.0 2.17.0 @@ -81,7 +81,7 @@ 3.2.3-RELEASE - + 1.6.0 1.6.13 3.0.1 @@ -91,6 +91,8 @@ 2.22.0 3.0.0 0.8.4 + 3.6.2 + 1.12.0 5.10.2 @@ -286,6 +288,40 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + enforce-bytecode-version + + enforce + + + + + ${java.version} + + + [3.8.0,) + + + [1.8, 1.9) + + + true + + + + + + org.codehaus.mojo + extra-enforcer-rules + ${extra-enforcer-rules.version} + + + org.apache.maven.plugins maven-source-plugin From ba67ab278200e2e79c9ee3b6c8c98ab0e61f2c26 Mon Sep 17 00:00:00 2001 From: Markus Spann Date: Fri, 10 Apr 2026 15:15:15 +0100 Subject: [PATCH 2/5] build: Maven plugin updates - Update core maven plugins to latest stable Java8-comptabile versions - Remove obsolete junit-platform-surefire-provider dependency --- pom.xml | 39 +++++++++++---------------------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/pom.xml b/pom.xml index 8f0c332a..fd795607 100644 --- a/pom.xml +++ b/pom.xml @@ -77,27 +77,24 @@ 2.13.3 1.79 1.18.22 - - 3.2.3-RELEASE - 1.6.0 - 1.6.13 - 3.0.1 - 3.2.0 - 2.8.2 - 1.6 - 2.22.0 - 3.0.0 - 0.8.4 + 3.6.3 + 1.7.0 + 3.4.0 + 3.12.0 + 3.1.4 + 3.2.8 + 3.5.5 + 3.6.0 + 0.8.14 3.6.2 1.12.0 5.10.2 1.8.2 - 1.2.0 4.3.1 3.22.0 @@ -255,10 +252,8 @@ validate google_checks.xml - UTF-8 true true - false checkstyle-suppressions.xml checkstyle.suppressions.file @@ -356,7 +351,7 @@ true - + org.apache.maven.plugins maven-gpg-plugin @@ -383,7 +378,7 @@ maven-surefire-plugin ${maven-surefire-plugin.version} - + true false @@ -402,18 +397,6 @@ **/utils/* - - - org.junit.platform - junit-platform-surefire-provider - ${junit-platform-surefire-provider.version} - - - org.junit.jupiter - junit-jupiter-engine - ${junit.version} - - org.codehaus.mojo From 0bb9fc0144faa83ec292dea41f2eef407016fc71 Mon Sep 17 00:00:00 2001 From: Markus Spann Date: Fri, 10 Apr 2026 15:30:30 +0100 Subject: [PATCH 3/5] build: simplify test dependencies and upgrade JUnit 5 - Use junit-jupiter aggregator instead of separate artifacts - Remove redundant junit-platform-launcher - Upgrade JUnit to 5.14.3, AssertJ to 3.27.7, and Mockito to 4.11.0 --- pom.xml | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/pom.xml b/pom.xml index fd795607..db53e84b 100644 --- a/pom.xml +++ b/pom.xml @@ -92,11 +92,10 @@ 3.6.2 1.12.0 - - 5.10.2 - 1.8.2 - 4.3.1 - 3.22.0 + + 5.14.3 + 3.27.7 + 4.11.0 https://sonarcloud.io @@ -191,30 +190,13 @@ ${iban4j.version} test + org.junit.jupiter - junit-jupiter-api + junit-jupiter ${junit.version} test - - org.junit.jupiter - junit-jupiter-engine - ${junit.version} - test - - - org.junit.jupiter - junit-jupiter-params - ${junit.version} - test - - - org.junit.platform - junit-platform-launcher - ${junit-platform-launcher.version} - test - org.assertj assertj-core From 9827058f2f1a71de4123d0dadfcd1e637e49da42 Mon Sep 17 00:00:00 2001 From: Markus Spann Date: Fri, 10 Apr 2026 15:45:45 +0100 Subject: [PATCH 4/5] build: update dependencies - Upgrade core dependencies: - commons-configuration2 to 2.14.0, lang3 to 3.20.0, io to 2.21.0 - slf4j to 2.0.17 - jackson-datatype/-annotations to 2.21.2 - bouncycastle (bcpkix-jdk18on) to 1.83 - lombok to 1.18.44 - Switch from org.iban4j to de.speedbanking:iban-commons for sample IBAN generation - Refactor jackson properties for better granularity --- pom.xml | 41 ++++++++++--------- .../ibanity/samples/helper/SampleHelper.java | 8 ++-- .../FinancialInstitutionAccountSample.java | 6 +-- 3 files changed, 28 insertions(+), 27 deletions(-) diff --git a/pom.xml b/pom.xml index db53e84b..63431ad3 100644 --- a/pom.xml +++ b/pom.xml @@ -67,17 +67,18 @@ UTF-8 - 2.10.1 - 3.18.0 - 2.17.0 + 2.14.0 + 3.20.0 + 2.21.0 3.6.1 - 1.15 - 1.7.35 - 4.5.13 - 2.13.3 - 1.79 - 1.18.22 - 3.2.3-RELEASE + 1.21.0 + 2.0.17 + 4.5.14 + 2.21 + 2.21.2 + 1.83 + 1.18.44 + 1.8.4 3.6.3 @@ -158,20 +159,20 @@ ${lombok.version} provided - - com.fasterxml.jackson.datatype - jackson-datatype-jdk8 - ${jackson.version} - com.fasterxml.jackson.core jackson-annotations - ${jackson.version} + ${jackson-annotations.version} + + + com.fasterxml.jackson.datatype + jackson-datatype-jdk8 + ${jackson-datatype.version} com.fasterxml.jackson.datatype jackson-datatype-jsr310 - ${jackson.version} + ${jackson-datatype.version} org.bitbucket.b_c @@ -185,9 +186,9 @@ test - org.iban4j - iban4j - ${iban4j.version} + de.speedbanking + iban-commons + ${iban-commons.version} test diff --git a/src/test/java/com/ibanity/samples/helper/SampleHelper.java b/src/test/java/com/ibanity/samples/helper/SampleHelper.java index 5332bba6..8e4e778e 100644 --- a/src/test/java/com/ibanity/samples/helper/SampleHelper.java +++ b/src/test/java/com/ibanity/samples/helper/SampleHelper.java @@ -9,9 +9,9 @@ import com.ibanity.apis.client.products.xs2a.sandbox.models.FinancialInstitutionUser; import com.ibanity.apis.client.products.xs2a.sandbox.models.factory.create.FinancialInstitutionHoldingCreationQuery; import com.ibanity.apis.client.products.xs2a.sandbox.models.factory.create.FinancialInstitutionTransactionCreationQuery; +import de.speedbanking.iban.IbanRegistry; +import de.speedbanking.iban.RandomIban; import org.apache.commons.math3.util.Precision; -import org.iban4j.CountryCode; -import org.iban4j.Iban; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -68,7 +68,7 @@ public static FinancialInstitutionTransactionCreationQuery generateRandomTransac .description("Car rental") .counterpartName("Stroman, Hettinger and Swift") - .counterpartReference(Iban.random(CountryCode.BE).getAccountNumber()) + .counterpartReference(RandomIban.of(IbanRegistry.BE).getAccountNumber()) .executionDate(Instant.now().plus(3, ChronoUnit.DAYS)) .valueDate(Instant.now().minus(1, ChronoUnit.DAYS)) @@ -96,7 +96,7 @@ public static PaymentInitiationRequestCreationQuery generateRandomPaymentInitiat .currency("EUR") .creditorName("Fake Creditor Name") - .creditorAccountReference(Iban.random(CountryCode.BE).toString()) + .creditorAccountReference(RandomIban.of(IbanRegistry.BE).toString()) .creditorAccountReferenceType("IBAN") .remittanceInformationType("unstructured") diff --git a/src/test/java/com/ibanity/samples/sandbox/FinancialInstitutionAccountSample.java b/src/test/java/com/ibanity/samples/sandbox/FinancialInstitutionAccountSample.java index 2ea8ae94..7052607b 100644 --- a/src/test/java/com/ibanity/samples/sandbox/FinancialInstitutionAccountSample.java +++ b/src/test/java/com/ibanity/samples/sandbox/FinancialInstitutionAccountSample.java @@ -9,8 +9,8 @@ import com.ibanity.apis.client.products.xs2a.sandbox.services.FinancialInstitutionAccountsService; import com.ibanity.apis.client.services.IbanityService; import com.ibanity.samples.helper.SampleHelper; -import org.iban4j.CountryCode; -import org.iban4j.Iban; +import de.speedbanking.iban.IbanRegistry; +import de.speedbanking.iban.RandomIban; import static java.time.Instant.parse; import java.util.UUID; @@ -30,7 +30,7 @@ public FinancialInstitutionAccount create(FinancialInstitution financialInstitut .currentBalance(SampleHelper.generateRandomAmount()) .currency("EUR") .description("Checking Account") - .reference(Iban.random(CountryCode.BE).toString()) + .reference(RandomIban.of(IbanRegistry.BE).toString()) .referenceType("IBAN") .product("Easy account") .holderName("John Doe") From 5e4d09b32a27ddc4e434229bff94a4c292d1e800 Mon Sep 17 00:00:00 2001 From: Markus Spann Date: Fri, 10 Apr 2026 15:45:45 +0100 Subject: [PATCH 5/5] build: define Maven default goal --- pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pom.xml b/pom.xml index 63431ad3..846d254c 100644 --- a/pom.xml +++ b/pom.xml @@ -219,6 +219,8 @@ + clean verify + org.sonarsource.scanner.maven