diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ada5292..20bfeb2 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -19,7 +19,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: zulu - java-version: 18 + java-version: 21 cache: maven - name: Build with Maven @@ -33,7 +33,7 @@ jobs: strategy: matrix: - java: [7, 8, 11, 18] + java: [7, 8, 11, 17, 21] name: Java ${{ matrix.java }} Compatibility @@ -54,7 +54,7 @@ jobs: deploy: name: Deploy to OSSRH needs: [build, compatibility-checks] - if: github.event_name == 'push' + if: github.event_name == 'push' && github.repository_owner == 'acegi' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]') runs-on: ubuntu-latest steps: diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index 2edcb6b..dee0915 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: zulu - java-version: 18 + java-version: 21 cache: maven - name: Build with Maven diff --git a/README.md b/README.md index 8053eb3..820085b 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,7 @@ for full information. Snapshot releases are available in the [OSS Sonatype Snapshots Repository](https://oss.sonatype.org/content/repositories/snapshots/au/com/acegi/xml-format-maven-plugin). + +## Releasing + +Use jdk 17 or lower to perform release in order to keep java compatibility at java 7. This is necessary as usage of java 21 to build requires we set to java 8. diff --git a/pom.xml b/pom.xml index b94cf18..21740eb 100644 --- a/pom.xml +++ b/pom.xml @@ -156,7 +156,7 @@ additional-plugins-on-java-11-and-above - [1.11 + [11,) @@ -179,5 +179,16 @@ + + additional-plugins-on-java-21-and-above + + [21,) + + + 8 + 8 + 8 + +