File tree Expand file tree Collapse file tree 4 files changed +15
-27
lines changed Expand file tree Collapse file tree 4 files changed +15
-27
lines changed Original file line number Diff line number Diff line change 26
26
- name : Publish
27
27
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
28
28
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 }}
31
31
GPG_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
32
32
GPG_SECRET_KEYS : ${{ secrets.PGP_PRIVATE_KEY }}
33
33
run : |
Original file line number Diff line number Diff line change 5
5
6
6
<servers >
7
7
<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 >
11
11
</server >
12
12
</servers >
13
13
14
14
<profiles >
15
15
<profile >
16
- <id >ossrh </id >
16
+ <id >central </id >
17
17
<activation >
18
18
<activeByDefault >true</activeByDefault >
19
19
</activation >
23
23
</properties >
24
24
</profile >
25
25
</profiles >
26
- </settings >
26
+ </settings >
Original file line number Diff line number Diff line change 9
9
<packaging >jar</packaging >
10
10
<name >DHIS JSON Tree</name >
11
11
<url >https://github.com/dhis2/json-tree</url >
12
- <version >1.9 -SNAPSHOT</version >
12
+ <version >1.8.1 -SNAPSHOT</version >
13
13
14
14
<developers >
15
15
<developer >
77
77
</dependency >
78
78
</dependencies >
79
79
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
-
91
80
<build >
92
81
<plugins >
93
82
<plugin >
152
141
</executions >
153
142
</plugin >
154
143
<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 >
158
147
<extensions >true</extensions >
159
148
<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 >
164
152
</configuration >
165
153
</plugin >
166
154
</plugins >
You can’t perform that action at this time.
0 commit comments