diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..ce29b89 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,43 @@ +name: Java CI + +on: + push: + branches: [ '1.x' ] + pull_request: + branches: [ '1.x' ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + jdk: [ '8', '11' ] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK ${{ matrix.jdk }} + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdk }} + + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2 + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Set up permissions + run: chmod +x ./ci/install-jdk.sh + + - name: Install JDK 11 + if: matrix.jdk == '11' + run: ./ci/install-jdk.sh -F 11 -L GPL + + - name: Build with Maven + run: mvn test -B -Dmaven.main.skip=true -Dmaven.test.skip=true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8c1d286..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: java -sudo: false -# see https://sormuras.github.io/blog/2018-03-20-jdk-matrix.html -matrix: - include: - # 8 - - env: JDK='OpenJDK 8' - jdk: openjdk8 - # 11 - - env: JDK='OpenJDK 11' - install: . $TRAVIS_BUILD_DIR/ci/install-jdk.sh -F 11 -L GPL -script: mvn test -B -Dmaven.main.skip=true -Dmaven.test.skip=true -cache: - directories: - - $HOME/.m2 diff --git a/pom.xml b/pom.xml index be1600d..55ac510 100644 --- a/pom.xml +++ b/pom.xml @@ -97,11 +97,6 @@ maven-javadoc-plugin 3.2.0 - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - maven-gpg-plugin 1.6 @@ -114,6 +109,11 @@ maven-deploy-plugin 2.8.2 + + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + @@ -230,17 +230,6 @@ limitations under the License.]]> - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - ossrh - https://oss.sonatype.org/ - false - true - - maven-javadoc-plugin @@ -282,6 +271,16 @@ limitations under the License.]]> + + org.sonatype.central + central-publishing-maven-plugin + true + + central + all + false + + @@ -305,12 +304,6 @@ limitations under the License.]]> - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - Apache 2