From f7e353a6d3487a6aa57aca06fa35001f1859a4c4 Mon Sep 17 00:00:00 2001 From: Bret McGuire Date: Fri, 14 Mar 2025 14:54:52 -0500 Subject: [PATCH 1/2] Maven changes necessary to publish to Sonatype Central Portal (#50) --- pom.xml | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) 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 From 97d91e79b81e86c7ded532c328fe31e05275f397 Mon Sep 17 00:00:00 2001 From: Madhavan Sridharan Date: Wed, 26 Mar 2025 16:33:08 -0400 Subject: [PATCH 2/2] 51 - travis to github actions --- .github/workflows/ci.yaml | 43 +++++++++++++++++++++++++++++++++++++++ .travis.yml | 15 -------------- 2 files changed, 43 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .travis.yml 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