Skip to content

Commit bbfc733

Browse files
authored
Merge pull request #37 from EasyPost/new_maven_url
fix: maven url used for publishing
2 parents 8f169f5 + 67b4ae5 commit bbfc733

2 files changed

Lines changed: 27 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313
matrix:
1414
java_version: [ "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23" ]
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- name: Set up JDK for compilation
18-
uses: actions/setup-java@v4
18+
uses: actions/setup-java@v5
1919
with:
2020
distribution: "zulu"
21-
java-version: "23" # Always use the latest JDK for building
21+
java-version: "21" # Always use the most recent LTS JDK for building
22+
cache: "maven"
2223
- name: Load Maven dependencies cache
2324
uses: actions/cache@v3
2425
with:
@@ -31,21 +32,23 @@ jobs:
3132
- name: Compile
3233
run: make build
3334
- name: Set up Java ${{ matrix.java_version }}
34-
uses: actions/setup-java@v3
35+
uses: actions/setup-java@v5
3536
with:
3637
distribution: "zulu"
3738
java-version: ${{ matrix.java_version }}
39+
cache: "maven"
3840
- name: Run test with Java ${{ matrix.java_version }}
3941
run: make test
4042
coverage:
4143
runs-on: ubuntu-latest
4244
steps:
43-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4446
- name: Set up JDK for compilation
45-
uses: actions/setup-java@v4
47+
uses: actions/setup-java@v5
4648
with:
4749
distribution: "zulu"
48-
java-version: "23" # Always use the latest JDK for building
50+
java-version: "21" # Always use the most recent LTS JDK for building
51+
cache: "maven"
4952
- name: Install dependencies
5053
run: make install
5154
- name: Test coverage
@@ -68,18 +71,18 @@ jobs:
6871
lint:
6972
runs-on: ubuntu-latest
7073
steps:
71-
- uses: actions/checkout@v4
72-
- name: Set up JDK for compilation
73-
uses: actions/setup-java@v4
74+
- uses: actions/checkout@v5
75+
- uses: actions/setup-java@v5
7476
with:
7577
distribution: "zulu"
76-
java-version: "23" # Always use the latest JDK for building
77-
- name: Install dependencies
78-
run: make install
79-
- name: Run CheckStyle checks
80-
uses: nikitasavinov/checkstyle-action@0.5.1
78+
java-version: "21" # Always use the most recent LTS JDK for building
79+
cache: "maven"
80+
- name: Install checkstyle and style guide
81+
run: make install-checkstyle
82+
- name: Lint
83+
run: make lint
84+
- name: Upload Test results
85+
uses: actions/upload-artifact@master
8186
with:
82-
level: error
83-
fail_on_error: true
84-
checkstyle_config: easypost_java_style.xml
85-
tool_name: "style_enforcer"
87+
name: DependencyCheck report
88+
path: ${{github.workspace}}/target/dependency-check-report.html

pom.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@
7171
<distributionManagement>
7272
<snapshotRepository>
7373
<id>ossrh</id>
74-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
74+
<url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots</url>
7575
</snapshotRepository>
7676
<repository>
7777
<id>ossrh</id>
78-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
78+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2</url>
7979
</repository>
8080
</distributionManagement>
8181
<properties>
@@ -186,14 +186,15 @@
186186
<release>8</release>
187187
</configuration>
188188
</plugin>
189+
<!-- TODO: Switch to new central-publishing-maven-plugin -->
189190
<plugin>
190191
<groupId>org.sonatype.plugins</groupId>
191192
<artifactId>nexus-staging-maven-plugin</artifactId>
192-
<version>1.6.13</version>
193+
<version>1.7.0</version>
193194
<extensions>true</extensions>
194195
<configuration>
195196
<serverId>ossrh</serverId>
196-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
197+
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
197198
<autoReleaseAfterClose>true</autoReleaseAfterClose>
198199
</configuration>
199200
</plugin>

0 commit comments

Comments
 (0)