diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 324fa1da..8fdea43f 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -35,8 +35,14 @@ jobs: restore-keys: | ${{ runner.os }}-maven- + - name: Publish to the Maven Central Repository run: mvn --batch-mode --update-snapshots deploy + if: matrix.Java == 11 env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + + - name: Maven Build + run: mvn --batch-mode --update-snapshots install + if: matrix.Java != 11 diff --git a/phive-rules-api/src/main/java/com/helger/phive/rules/api/PhiveRulesTestHelper.java b/phive-rules-api/src/main/java/com/helger/phive/rules/api/PhiveRulesTestHelper.java index dfd0e1cc..67a43c73 100644 --- a/phive-rules-api/src/main/java/com/helger/phive/rules/api/PhiveRulesTestHelper.java +++ b/phive-rules-api/src/main/java/com/helger/phive/rules/api/PhiveRulesTestHelper.java @@ -24,8 +24,13 @@ public static boolean isContentCorrect (final IValidationExecutor