Skip to content

Commit 88fb369

Browse files
authored
chore: Adapt to Sonatype Central Publisher Portal (#75)
* Adapt to Sonatype Central Publisher Portal * Remove modified style
1 parent bc4e844 commit 88fb369

File tree

4 files changed

+15
-27
lines changed

4 files changed

+15
-27
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
- name: Publish
2727
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
2828
env:
29-
OSSRH_USERNAME: ${{ secrets.SONATYPE_OSSRH_USERNAME }}
30-
OSSRH_PASSWORD: ${{ secrets.SONATYPE_OSSRH_PASSWORD }}
29+
SONATYPE_PORTAL_USERNAME: ${{ secrets.SONATYPE_PORTAL_USERNAME }}
30+
SONATYPE_PORTAL_PASSWORD: ${{ secrets.SONATYPE_PORTAL_PASSWORD }}
3131
GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
3232
GPG_SECRET_KEYS: ${{ secrets.PGP_PRIVATE_KEY }}
3333
run: |

.idea/codeStyles/Project.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mvn/settings.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
<servers>
77
<server>
8-
<id>ossrh</id>
9-
<username>${env.OSSRH_USERNAME}</username>
10-
<password>${env.OSSRH_PASSWORD}</password>
8+
<id>central</id>
9+
<username>${env.SONATYPE_PORTAL_USERNAME}</username>
10+
<password>${env.SONATYPE_PORTAL_PASSWORD}</password>
1111
</server>
1212
</servers>
1313

1414
<profiles>
1515
<profile>
16-
<id>ossrh</id>
16+
<id>central</id>
1717
<activation>
1818
<activeByDefault>true</activeByDefault>
1919
</activation>
@@ -23,4 +23,4 @@
2323
</properties>
2424
</profile>
2525
</profiles>
26-
</settings>
26+
</settings>

pom.xml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<packaging>jar</packaging>
1010
<name>DHIS JSON Tree</name>
1111
<url>https://github.com/dhis2/json-tree</url>
12-
<version>1.9-SNAPSHOT</version>
12+
<version>1.8.1-SNAPSHOT</version>
1313

1414
<developers>
1515
<developer>
@@ -77,17 +77,6 @@
7777
</dependency>
7878
</dependencies>
7979

80-
<distributionManagement>
81-
<snapshotRepository>
82-
<id>ossrh</id>
83-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
84-
</snapshotRepository>
85-
<repository>
86-
<id>ossrh</id>
87-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
88-
</repository>
89-
</distributionManagement>
90-
9180
<build>
9281
<plugins>
9382
<plugin>
@@ -152,15 +141,14 @@
152141
</executions>
153142
</plugin>
154143
<plugin>
155-
<groupId>org.sonatype.plugins</groupId>
156-
<artifactId>nexus-staging-maven-plugin</artifactId>
157-
<version>1.7.0</version>
144+
<groupId>org.sonatype.central</groupId>
145+
<artifactId>central-publishing-maven-plugin</artifactId>
146+
<version>0.8.0</version>
158147
<extensions>true</extensions>
159148
<configuration>
160-
<serverId>ossrh</serverId>
161-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
162-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
163-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
149+
<publishingServerId>central</publishingServerId>
150+
<autoPublish>true</autoPublish>
151+
<waitUntil>published</waitUntil>
164152
</configuration>
165153
</plugin>
166154
</plugins>

0 commit comments

Comments
 (0)