Skip to content

Commit e63f61c

Browse files
authored
7.2.3 - Update to new publishing (#146)
* Change publishing to cental and bump version * RELEASING and CHANGELOG
1 parent acd75fd commit e63f61c

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v7.2.3
4+
5+
- No code change, changed publishing to new sonatype.
6+
7+
## v7.2.2
8+
9+
- Fix issues with shaded jar.
10+
311
## v7.2.1
412

513
- Update dependencies to fix CVEs.

RELEASING.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ We deploy the SDK to [Maven Central](https://search.maven.org/artifact/com.ironc
66
- Update the `sdkVersion` in [TenantSecurityRequest.java](./src/main/java/com/ironcorelabs/tenantsecurity/kms/v1/TenantSecurityRequest.java) to match the pom.xml.
77
- Add an entry to [CHANGELOG.md](./CHANGELOG.md).
88
- Commit the changes to the `main` branch and add a git tag with the `version` in it. Wait until the release has succeeded to push the changes.
9-
- Login to https://oss.sonatype.org with the username `icl-devops` and the password which is stored in `IT_Info/sonatype-info.txt.iron`.
9+
- Login to https://central.sonatype.org/ with the username `icl-devops` and the password which is stored in `IT_Info/sonatype-info.txt.iron`.
1010
- In the corner with the username click the down arrow and go to profile. Then click the `Access User Token` button. Copy the username and password into your `.m2/settings.xml`. A sample of this file is given below.
1111
- Import the GPG signing key needed to sign the release. In Google Drive, navigate to the `IT_Info/pgp` folder, download `rsa-signing-subkey.asc.iron` and `ops-info.txt.iron`, and decrypt them using IronHide. Then do the following:
1212
1. Copy the master password from `ops-info.txt` to your clipboard so it can be provided in step 3 when importing the secret key.
@@ -21,8 +21,6 @@ We deploy the SDK to [Maven Central](https://search.maven.org/artifact/com.ironc
2121
- To test the release process or to install `tenant-security-client-java` to your local machine, you can instead run
2222
`mvn clean generate-resources source:jar javadoc:jar install -Dsuite=test-suites/test-unit` and verify that all steps of the
2323
release process complete successfully.
24-
- When the artifacts have been deployed, go to https://oss.sonatype.org, log in using the `icl-devops` username and
25-
password from `sonatype-info.txt`, and find the new release in the _Staging Repositories_. Close that repository and then release it in order to actually push the package out to the public repo.
2624
- Push your new version and CHANGELOG entry to GitHub. Create a release in github and label it as latest if it isn't already.
2725

2826
### Sample .m2/settings.xml
@@ -33,7 +31,7 @@ We deploy the SDK to [Maven Central](https://search.maven.org/artifact/com.ironc
3331
<localRepository>${user.home}/.m2/repository</localRepository>
3432
<servers>
3533
<server>
36-
<id>sonatype-nexus</id>
34+
<id>centrals</id>
3735
<username>*********</username>
3836
<password>***************************</password>
3937
</server>

pom.xml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<groupId>com.ironcorelabs</groupId>
99
<artifactId>tenant-security-java</artifactId>
1010
<packaging>jar</packaging>
11-
<version>7.2.2</version>
11+
<version>7.2.3</version>
1212
<name>tenant-security-java</name>
1313
<url>https://ironcorelabs.com/docs</url>
1414
<description>Java client library for the IronCore Labs Tenant Security Proxy.</description>
@@ -35,18 +35,6 @@
3535
<url>http://github.com/ironcorelabs</url>
3636
</developer>
3737
</developers>
38-
39-
<distributionManagement>
40-
<snapshotRepository>
41-
<id>sonatype-nexus-snapshots</id>
42-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
43-
</snapshotRepository>
44-
<repository>
45-
<id>sonatype-nexus</id>
46-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
47-
</repository>
48-
</distributionManagement>
49-
5038
<properties>
5139
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5240
</properties>
@@ -252,6 +240,16 @@
252240
</execution>
253241
</executions>
254242
</plugin>
243+
<plugin>
244+
<groupId>org.sonatype.central</groupId>
245+
<artifactId>central-publishing-maven-plugin</artifactId>
246+
<version>0.7.0</version>
247+
<extensions>true</extensions>
248+
<configuration>
249+
<publishingServerId>central</publishingServerId>
250+
<autoPublish>true</autoPublish>
251+
</configuration>
252+
</plugin>
255253
</plugins>
256254
</build>
257255
</project>

src/main/java/com/ironcorelabs/tenantsecurity/kms/v1/TenantSecurityRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ final class TenantSecurityRequest implements Closeable {
5555
private final int timeout;
5656

5757
// TSC version that will be sent to the TSP.
58-
static final String sdkVersion = "7.2.2";
58+
static final String sdkVersion = "7.2.3";
5959

6060
TenantSecurityRequest(String tspDomain, String apiKey, int requestThreadSize, int timeout) {
6161
HttpHeaders headers = new HttpHeaders();

0 commit comments

Comments
 (0)