Skip to content

Commit 13b8d36

Browse files
committed
Go ahead and throw IO exceptions from the client instead of hashing them (for some reason).
Use the new maven sonatype plugin.
1 parent c728b88 commit 13b8d36

3 files changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
java-version: '19'
4141
distribution: 'adopt'
42-
server-id: ossrh
42+
server-id: central
4343
server-username: OSSRH_USERNAME
4444
server-password: OSSRH_PASSWORD
4545
gpg-private-key: ${{env.GPG_SECRET_KEY}}

pom.xml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@
3535
<url>https://github.com/smartystreets/smartystreets-java-sdk.git</url>
3636
</scm>
3737

38-
<distributionManagement>
39-
<snapshotRepository>
40-
<id>ossrh</id>
41-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
42-
</snapshotRepository>
43-
</distributionManagement>
44-
4538
<properties>
4639
<maven.compiler.source>1.8</maven.compiler.source>
4740
<maven.compiler.target>1.8</maven.compiler.target>
@@ -135,14 +128,12 @@
135128
</executions>
136129
</plugin>
137130
<plugin>
138-
<groupId>org.sonatype.plugins</groupId>
139-
<artifactId>nexus-staging-maven-plugin</artifactId>
140-
<version>1.7.0</version>
131+
<groupId>org.sonatype.central</groupId>
132+
<artifactId>central-publishing-maven-plugin</artifactId>
133+
<version>0.8.0</version>
141134
<extensions>true</extensions>
142135
<configuration>
143-
<serverId>ossrh</serverId>
144-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
145-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
136+
<publishingServerId>central</publishingServerId>
146137
</configuration>
147138
</plugin>
148139
<plugin>

src/main/java/com/smartystreets/api/SmartySender.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ public Response send(Request smartyRequest) throws SmartyException, IOException
5252
return new TooManyRequestsResponse(httpResponse.headers(), statusCode, httpResponse.body().bytes());
5353
}
5454
return new Response(statusCode, httpResponse.body().bytes());
55-
} catch(IOException ex) {
56-
return new Response(ex.hashCode(), new byte[0]);
5755
}
5856
}
5957

0 commit comments

Comments
 (0)