diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1445eb5..127ec5a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -28,7 +28,7 @@ jobs: distribution: 'temurin' cache: maven - name: Build with Maven - run: ./mvnw -B package --file pom.xml + run: ./mvnw package --batch-mode # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph diff --git a/pom.xml b/pom.xml index 3635dff..eede13e 100644 --- a/pom.xml +++ b/pom.xml @@ -15,12 +15,7 @@ UTF-8 UTF-8 - - - true - - - true + 8 @@ -45,26 +40,6 @@ - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots/ - - - - - - snapshots-repo - https://oss.sonatype.org/content/repositories/snapshots - - false - - - true - - - - org.jspecify @@ -74,26 +49,33 @@ com.fasterxml.jackson.core jackson-core - 2.18.3 + 2.19.0 org.junit.jupiter junit-jupiter - 5.12.1 + 5.13.0 test + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.5.0 + + + + org.apache.maven.plugins maven-compiler-plugin 3.14.0 - - 8 - org.apache.maven.plugins @@ -152,29 +134,21 @@ sign-artifacts - verify + deploy sign - - - - --pinentry-mode - loopback - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 true - ossrh - https://oss.sonatype.org/ - ${autoReleaseAfterClose} + true + published @@ -204,40 +178,55 @@ + + + org.apache.maven.plugins + maven-enforcer-plugin + + + enforce-deploy-has-active-profile + deploy + + enforce + + + + + + snapshot,release + false + + + true + + + + - release - - - release - - - - false - + snapshot org.apache.maven.plugins maven-enforcer-plugin - 3.5.0 - enforce-release + enforce-snapshot enforce - - Not a release version (remove -SNAPSHOT suffix!) - - - Can't release with snapshot dependencies! - + + Not a SNAPSHOT version! + true @@ -248,27 +237,26 @@ - snapshot - - false - + release org.apache.maven.plugins maven-enforcer-plugin - 3.5.0 - enforce-no-releases + enforce-release enforce - - Not a snapshot version - + + Not a release version (remove -SNAPSHOT suffix!) + + + Can't release with snapshot dependencies! + true