From 717ae576a5459b1947f91c9936084f0eb16a9d2a Mon Sep 17 00:00:00 2001 From: Remy Duijsens Date: Sun, 23 Aug 2026 22:32:52 +0200 Subject: [PATCH 1/8] Build: inherit HauntedPlatform 1.0.0 --- pom.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index c476548..d27f9b5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,6 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + + nl.hauntedmc.platform + haunted-library-parent + 1.0.0 + + + nl.hauntedmc.dataprovider dataprovider-parent ${revision} @@ -54,10 +61,6 @@ 3.2.0 - UTF-8 - UTF-8 - 25 - ${java.version} 26.2.build.112-stable From 73da7df712464b93ea7dcd914c941add6733ac92 Mon Sep 17 00:00:00 2001 From: Remy Duijsens Date: Sun, 23 Aug 2026 23:00:38 +0200 Subject: [PATCH 2/8] Configure HauntedPlatform package resolution --- .github/workflows/ci-lint.yml | 41 +++++++++++++---------------------- .mvn/maven.config | 2 ++ .mvn/settings.xml | 2 ++ 3 files changed, 19 insertions(+), 26 deletions(-) create mode 100644 .mvn/maven.config create mode 100644 .mvn/settings.xml diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index 8a8de00..d97f5f9 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -2,38 +2,27 @@ name: CI Lint on: pull_request: - types: - - opened - - synchronize - - reopened + types: [opened, synchronize, reopened] push: - branches: - - main + branches: [main] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: - lint: - name: Static checks - runs-on: ubuntu-latest - permissions: - contents: read + maven-policy: + name: Shared Maven policy + uses: HauntedMC/HauntedPlatform/.github/workflows/maven-ci.yml@v1.0.0 + with: + maven-command: ./mvnw -U -B -ntp -DskipTests verify + secrets: + PACKAGES_USER: ${{ secrets.HAUNTEDMC_PACKAGES_USERNAME }} + PACKAGES_TOKEN: ${{ secrets.HAUNTEDMC_PACKAGES_TOKEN }} + shellcheck: + name: ShellCheck + runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v7 - - - name: Set up JDK 25 - uses: actions/setup-java@v5 - with: - distribution: temurin - java-version: "25" - cache: maven - - - name: Run Checkstyle - run: ./mvnw -U -B -ntp -DskipTests checkstyle:check - - - name: Lint shell scripts - run: shellcheck update_version.sh dataprovider-platform-acceptance/run-platform-acceptance.sh + - uses: actions/checkout@v4 + - run: shellcheck update_version.sh dataprovider-platform-acceptance/run-platform-acceptance.sh diff --git a/.mvn/maven.config b/.mvn/maven.config new file mode 100644 index 0000000..72fce39 --- /dev/null +++ b/.mvn/maven.config @@ -0,0 +1,2 @@ +--settings +.mvn/settings.xml diff --git a/.mvn/settings.xml b/.mvn/settings.xml new file mode 100644 index 0000000..97ad35c --- /dev/null +++ b/.mvn/settings.xml @@ -0,0 +1,2 @@ + +github${env.PACKAGES_USER}${env.PACKAGES_TOKEN}hauntedmc-github-packagescentralhttps://repo.maven.apache.org/maven2githubhttps://maven.pkg.github.com/hauntedmc/*truehauntedmc-github-packages From e1a872712f0af45c7ed74902753c6bbb909b944a Mon Sep 17 00:00:00 2001 From: Remy Duijsens Date: Sun, 23 Aug 2026 23:11:27 +0200 Subject: [PATCH 3/8] Resolve shared build rules from GitHub Packages --- .mvn/settings.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.mvn/settings.xml b/.mvn/settings.xml index 97ad35c..cb9d6e9 100644 --- a/.mvn/settings.xml +++ b/.mvn/settings.xml @@ -1,2 +1,9 @@ -github${env.PACKAGES_USER}${env.PACKAGES_TOKEN}hauntedmc-github-packagescentralhttps://repo.maven.apache.org/maven2githubhttps://maven.pkg.github.com/hauntedmc/*truehauntedmc-github-packages + + github${env.PACKAGES_USER}${env.PACKAGES_TOKEN} + hauntedmc-github-packages + centralhttps://repo.maven.apache.org/maven2githubhttps://maven.pkg.github.com/hauntedmc/*true + centralhttps://repo.maven.apache.org/maven2githubhttps://maven.pkg.github.com/hauntedmc/*true + + hauntedmc-github-packages + From 04a600dde941ce32868bddf03fef96b313f74364 Mon Sep 17 00:00:00 2001 From: Remy Duijsens Date: Sun, 23 Aug 2026 23:14:31 +0200 Subject: [PATCH 4/8] Bootstrap shared build-rule plugin resolution --- pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pom.xml b/pom.xml index d27f9b5..cb6802d 100644 --- a/pom.xml +++ b/pom.xml @@ -126,6 +126,10 @@ + + githubhttps://maven.pkg.github.com/HauntedMC/* + + From 3619ab39df7d18328bb2e27f0b84394c06d61483 Mon Sep 17 00:00:00 2001 From: Remy Duijsens Date: Mon, 24 Aug 2026 09:22:21 +0200 Subject: [PATCH 5/8] Adopt HauntedPlatform 1.0.1 --- .github/workflows/ci-lint.yml | 2 +- pom.xml | 64 ++--------------------------------- 2 files changed, 4 insertions(+), 62 deletions(-) diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index d97f5f9..714df47 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -13,7 +13,7 @@ concurrency: jobs: maven-policy: name: Shared Maven policy - uses: HauntedMC/HauntedPlatform/.github/workflows/maven-ci.yml@v1.0.0 + uses: HauntedMC/HauntedPlatform/.github/workflows/maven-ci.yml@v1.0.1 with: maven-command: ./mvnw -U -B -ntp -DskipTests verify secrets: diff --git a/pom.xml b/pom.xml index cb6802d..a8a2e60 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ nl.hauntedmc.platform haunted-library-parent - 1.0.0 + 1.0.1 @@ -132,54 +132,12 @@ - - - jakarta.xml.bind - jakarta.xml.bind-api - ${jakarta.xml.bind.version} - - - org.jboss.logging - jboss-logging - ${jboss.logging.version} - - - org.glassfish.jaxb - jaxb-runtime - ${jaxb.runtime.version} - - - org.slf4j - slf4j-api - ${slf4j.version} - + com.google.errorprone error_prone_annotations ${errorprone.annotations.version} - - org.jetbrains - annotations - ${jetbrains.annotations.version} - - - org.jspecify - jspecify - ${jspecify.version} - - - com.google.code.gson - gson - ${gson.version} - - - net.kyori - adventure-bom - ${adventure.version} - pom - import - @@ -267,7 +225,7 @@ - release-style-gate + checkstyle-verify verify check @@ -278,15 +236,6 @@ jacoco-maven-plugin ${jacoco.version} - - prepare-coverage-agent - prepare-agent - - - generate-coverage-report - verify - report - enforce-coverage-minimum verify @@ -324,13 +273,6 @@ - - - maven-deploy-plugin - - true - - From 54bf89a3306af0469ae72af684113dd32575f7a9 Mon Sep 17 00:00:00 2001 From: Remy Duijsens Date: Mon, 24 Aug 2026 10:57:26 +0200 Subject: [PATCH 6/8] Build: align with HauntedPlatform 1.1 --- .github/workflows/ci-lint.yml | 4 +- .github/workflows/ci-tests-and-coverage.yml | 8 +-- .github/workflows/release-package.yml | 4 +- checkstyle.xml | 10 --- pom.xml | 70 +++++---------------- 5 files changed, 23 insertions(+), 73 deletions(-) delete mode 100644 checkstyle.xml diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index 714df47..b4afca1 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -13,7 +13,7 @@ concurrency: jobs: maven-policy: name: Shared Maven policy - uses: HauntedMC/HauntedPlatform/.github/workflows/maven-ci.yml@v1.0.1 + uses: HauntedMC/HauntedPlatform/.github/workflows/maven-ci.yml@v1.1.0 with: maven-command: ./mvnw -U -B -ntp -DskipTests verify secrets: @@ -24,5 +24,5 @@ jobs: name: ShellCheck runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - run: shellcheck update_version.sh dataprovider-platform-acceptance/run-platform-acceptance.sh diff --git a/.github/workflows/ci-tests-and-coverage.yml b/.github/workflows/ci-tests-and-coverage.yml index 9bc2142..d5b6ca8 100644 --- a/.github/workflows/ci-tests-and-coverage.yml +++ b/.github/workflows/ci-tests-and-coverage.yml @@ -29,10 +29,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up JDK 25 - uses: actions/setup-java@v5 + uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 with: distribution: temurin java-version: "25" @@ -85,10 +85,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up JDK 25 - uses: actions/setup-java@v5 + uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 with: distribution: temurin java-version: "25" diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 79f5dc2..7b8f623 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -19,12 +19,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Set up JDK 25 - uses: actions/setup-java@v5 + uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 with: distribution: temurin java-version: "25" diff --git a/checkstyle.xml b/checkstyle.xml deleted file mode 100644 index 4af5804..0000000 --- a/checkstyle.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/pom.xml b/pom.xml index a8a2e60..8362f66 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ nl.hauntedmc.platform haunted-library-parent - 1.0.1 + 1.1.0 @@ -70,44 +70,30 @@ 4.1.0-SNAPSHOT 9 635ffe27b4fe1b97e61479012121d4e7c61a9eec99e6bd5a1f923053c2a259ce - 5.2.0 + ${haunted.adventure.version} 1.0.0 - 4.2.0 + ${haunted.configurate.version} 26.7.0 7.1.0 5.10.0 8.0.0 - 7.4.5.Final - 3.2.0 - 4.0.5 - 4.0.9 - 3.6.3.Final - 2.50.0 - 26.1.0 - 1.0.1 - 2.0.18 - 2.14.0 + ${haunted.hibernate.version} + ${haunted.jpa.version} + ${haunted.jaxb.api.version} + ${haunted.jaxb.runtime.version} + ${haunted.jboss.logging.version} + ${haunted.errorprone.version} + ${haunted.jetbrains.annotations.version} + ${haunted.jspecify.version} + ${haunted.slf4j.version} + ${haunted.gson.version} - 6.1.3 - 5.23.0 + ${haunted.junit.version} + ${haunted.mockito.version} - 3.15.0 - 3.5.6 - 3.5.1 - 3.5.0 - 3.5.0 - 3.1.4 - 3.1.4 3.6.3 - 3.22.0 - 3.6.3 - 3.6.0 - 14.0.0 - 3.6.2 3.6.1 - 0.8.15 - 1.8.0 @@ -205,32 +191,6 @@ - - org.apache.maven.plugins - maven-checkstyle-plugin - ${maven.checkstyle.plugin.version} - - ${maven.multiModuleProjectDirectory}/checkstyle.xml - true - true - warning - true - - - - com.puppycrawl.tools - checkstyle - ${checkstyle.version} - - - - - checkstyle-verify - verify - check - - - org.jacoco jacoco-maven-plugin From 771e875917c272911451ae3c99f9fd8798a577f5 Mon Sep 17 00:00:00 2001 From: Remy Duijsens Date: Mon, 24 Aug 2026 11:04:48 +0200 Subject: [PATCH 7/8] Style: satisfy shared Checkstyle rules --- .../dataprovider/database/document/DocumentDataAccess.java | 2 +- .../hauntedmc/dataprovider/core/DataProviderRegistryTest.java | 1 - .../java/nl/hauntedmc/dataprovider/core/api/CurrentApiTest.java | 1 - .../common/lifecycle/PlatformDataProviderRuntimeTest.java | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dataprovider-api/src/main/java/nl/hauntedmc/dataprovider/database/document/DocumentDataAccess.java b/dataprovider-api/src/main/java/nl/hauntedmc/dataprovider/database/document/DocumentDataAccess.java index b4b8837..14df32c 100644 --- a/dataprovider-api/src/main/java/nl/hauntedmc/dataprovider/database/document/DocumentDataAccess.java +++ b/dataprovider-api/src/main/java/nl/hauntedmc/dataprovider/database/document/DocumentDataAccess.java @@ -13,7 +13,7 @@ /** * DocumentDataAccess defines typical CRUD and index operations for * a document–based database in a technology–agnostic way. - * Each "document" is represented as a Map. Document values may include null, + * Each "document" is represented as a {@code Map}. Document values may include null, * nested maps, and nested lists when supported by the selected document backend. * Queries and updates are represented by custom DSL classes * (DocumentQuery, DocumentUpdate, DocumentUpdateOptions). diff --git a/dataprovider-core/src/test/java/nl/hauntedmc/dataprovider/core/DataProviderRegistryTest.java b/dataprovider-core/src/test/java/nl/hauntedmc/dataprovider/core/DataProviderRegistryTest.java index b88d744..526aaef 100644 --- a/dataprovider-core/src/test/java/nl/hauntedmc/dataprovider/core/DataProviderRegistryTest.java +++ b/dataprovider-core/src/test/java/nl/hauntedmc/dataprovider/core/DataProviderRegistryTest.java @@ -6,7 +6,6 @@ import nl.hauntedmc.dataprovider.database.DatabaseConnectionKey; import nl.hauntedmc.dataprovider.database.DatabaseProvider; import nl.hauntedmc.dataprovider.database.DatabaseType; -import nl.hauntedmc.dataprovider.core.ManagedDatabaseProvider; import nl.hauntedmc.dataprovider.core.testutil.RecordingLoggerAdapter; import org.junit.jupiter.api.Test; import org.spongepowered.configurate.CommentedConfigurationNode; diff --git a/dataprovider-core/src/test/java/nl/hauntedmc/dataprovider/core/api/CurrentApiTest.java b/dataprovider-core/src/test/java/nl/hauntedmc/dataprovider/core/api/CurrentApiTest.java index 05584a6..e003da1 100644 --- a/dataprovider-core/src/test/java/nl/hauntedmc/dataprovider/core/api/CurrentApiTest.java +++ b/dataprovider-core/src/test/java/nl/hauntedmc/dataprovider/core/api/CurrentApiTest.java @@ -28,7 +28,6 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.doAnswer; -import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; diff --git a/dataprovider-platform-common/src/test/java/nl/hauntedmc/dataprovider/platform/common/lifecycle/PlatformDataProviderRuntimeTest.java b/dataprovider-platform-common/src/test/java/nl/hauntedmc/dataprovider/platform/common/lifecycle/PlatformDataProviderRuntimeTest.java index 6441571..93166eb 100644 --- a/dataprovider-platform-common/src/test/java/nl/hauntedmc/dataprovider/platform/common/lifecycle/PlatformDataProviderRuntimeTest.java +++ b/dataprovider-platform-common/src/test/java/nl/hauntedmc/dataprovider/platform/common/lifecycle/PlatformDataProviderRuntimeTest.java @@ -13,7 +13,6 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; From 612be75f493cd7d133d7aed8aff5f00d9704ee17 Mon Sep 17 00:00:00 2001 From: Remy Duijsens Date: Mon, 24 Aug 2026 15:07:52 +0200 Subject: [PATCH 8/8] Build: complete Platform 1.2.0 migration cleanup --- .github/workflows/ci-lint.yml | 2 +- dataprovider-core/pom.xml | 9 --- .../runtime/pom.xml | 2 +- pom.xml | 79 +------------------ 4 files changed, 4 insertions(+), 88 deletions(-) diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index b4afca1..278fb82 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -13,7 +13,7 @@ concurrency: jobs: maven-policy: name: Shared Maven policy - uses: HauntedMC/HauntedPlatform/.github/workflows/maven-ci.yml@v1.1.0 + uses: HauntedMC/HauntedPlatform/.github/workflows/maven-ci.yml@v1.2.0 with: maven-command: ./mvnw -U -B -ntp -DskipTests verify secrets: diff --git a/dataprovider-core/pom.xml b/dataprovider-core/pom.xml index e357ea3..821bc61 100644 --- a/dataprovider-core/pom.xml +++ b/dataprovider-core/pom.xml @@ -11,12 +11,6 @@ dataprovider-core DataProvider Core - - - 1.21.4 - 3.5.6 - - ${project.groupId} @@ -96,19 +90,16 @@ org.testcontainers junit-jupiter - ${testcontainers.version} test org.testcontainers mysql - ${testcontainers.version} test org.testcontainers mongodb - ${testcontainers.version} test diff --git a/dataprovider-platform-acceptance/runtime/pom.xml b/dataprovider-platform-acceptance/runtime/pom.xml index 266411c..a58f522 100644 --- a/dataprovider-platform-acceptance/runtime/pom.xml +++ b/dataprovider-platform-acceptance/runtime/pom.xml @@ -17,7 +17,7 @@ org.codehaus.mojo exec-maven-plugin - ${exec.maven.plugin.version} + ${maven.exec.version} boot-packaged-platform-artifacts diff --git a/pom.xml b/pom.xml index 8362f66..c2b136c 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ nl.hauntedmc.platform haunted-library-parent - 1.1.0 + 1.2.0 @@ -91,8 +91,6 @@ ${haunted.junit.version} ${haunted.mockito.version} - - 3.6.3 3.6.1 @@ -116,81 +114,8 @@ githubhttps://maven.pkg.github.com/HauntedMC/* - - - - - com.google.errorprone - error_prone_annotations - ${errorprone.annotations.version} - - - - - - org.codehaus.mojo - flatten-maven-plugin - ${flatten.plugin.version} - - resolveCiFriendliesOnly - - - - flatten-pom - process-resources - flatten - - - clean-flattened-pom - clean - clean - - - - - org.apache.maven.plugins - maven-enforcer-plugin - ${maven.enforcer.version} - - - enforce-build-environment - validate - enforce - - - [25,) - [3.8.6,) - - - - - true - - net.kyori:adventure-api:[0,5.0.0) - net.kyori:adventure-key:[0,5.0.0) - net.kyori:adventure-nbt:[0,5.0.0) - net.kyori:adventure-resource-pack:[0,5.0.0) - net.kyori:adventure-serializer-configurate4:[0,5.0.0) - net.kyori:adventure-text-logger-slf4j:[0,5.0.0) - net.kyori:adventure-text-minimessage:[0,5.0.0) - net.kyori:adventure-text-serializer-ansi:[0,5.0.0) - net.kyori:adventure-text-serializer-commons:[0,5.0.0) - net.kyori:adventure-text-serializer-gson:[0,5.0.0) - net.kyori:adventure-text-serializer-gson-legacy-impl:[0,5.0.0) - net.kyori:adventure-text-serializer-json:[0,5.0.0) - net.kyori:adventure-text-serializer-json-legacy-impl:[0,5.0.0) - net.kyori:adventure-text-serializer-legacy:[0,5.0.0) - net.kyori:adventure-text-serializer-plain:[0,5.0.0) - - Adventure 4.x core modules are not supported. Keep the Adventure core dependency graph on 5.x. - - - - - - org.jacoco jacoco-maven-plugin @@ -220,7 +145,7 @@ org.basepom.maven duplicate-finder-maven-plugin - 2.0.1 + ${duplicate.finder.version} reject-duplicate-classes