diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 205aef8..50a4b63 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -13,12 +13,13 @@ jobs:
matrix:
java_version: [ "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23" ]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Set up JDK for compilation
- uses: actions/setup-java@v4
+ uses: actions/setup-java@v5
with:
distribution: "zulu"
- java-version: "23" # Always use the latest JDK for building
+ java-version: "21" # Always use the most recent LTS JDK for building
+ cache: "maven"
- name: Load Maven dependencies cache
uses: actions/cache@v3
with:
@@ -31,21 +32,23 @@ jobs:
- name: Compile
run: make build
- name: Set up Java ${{ matrix.java_version }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v5
with:
distribution: "zulu"
java-version: ${{ matrix.java_version }}
+ cache: "maven"
- name: Run test with Java ${{ matrix.java_version }}
run: make test
coverage:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- name: Set up JDK for compilation
- uses: actions/setup-java@v4
+ uses: actions/setup-java@v5
with:
distribution: "zulu"
- java-version: "23" # Always use the latest JDK for building
+ java-version: "21" # Always use the most recent LTS JDK for building
+ cache: "maven"
- name: Install dependencies
run: make install
- name: Test coverage
@@ -68,18 +71,18 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - name: Set up JDK for compilation
- uses: actions/setup-java@v4
+ - uses: actions/checkout@v5
+ - uses: actions/setup-java@v5
with:
distribution: "zulu"
- java-version: "23" # Always use the latest JDK for building
- - name: Install dependencies
- run: make install
- - name: Run CheckStyle checks
- uses: nikitasavinov/checkstyle-action@0.5.1
+ java-version: "21" # Always use the most recent LTS JDK for building
+ cache: "maven"
+ - name: Install checkstyle and style guide
+ run: make install-checkstyle
+ - name: Lint
+ run: make lint
+ - name: Upload Test results
+ uses: actions/upload-artifact@master
with:
- level: error
- fail_on_error: true
- checkstyle_config: easypost_java_style.xml
- tool_name: "style_enforcer"
+ name: DependencyCheck report
+ path: ${{github.workspace}}/target/dependency-check-report.html
diff --git a/pom.xml b/pom.xml
index 29be8fc..8d3c847 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,11 +71,11 @@
ossrh
- https://oss.sonatype.org/content/repositories/snapshots
+ https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots
ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2
+ https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2
@@ -186,14 +186,15 @@
8
+
org.sonatype.plugins
nexus-staging-maven-plugin
- 1.6.13
+ 1.7.0
true
ossrh
- https://oss.sonatype.org/
+ https://ossrh-staging-api.central.sonatype.com/
true