|
85 | 85 | </developer>
|
86 | 86 | </developers>
|
87 | 87 |
|
88 |
| - <distributionManagement> |
| 88 | + <!-- <distributionManagement> |
89 | 89 |
|
90 |
| - <!-- Maven Snapshot Repository --> |
| 90 | + Maven Snapshot Repository |
91 | 91 | <snapshotRepository>
|
92 | 92 | <id>ossrh</id>
|
93 | 93 | <url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
94 | 94 | </snapshotRepository>
|
95 |
| - |
96 |
| - <!--GitHub Packages--> |
97 |
| - <!-- <snapshotRepository>--> |
98 |
| - <!-- <id>github</id>--> |
99 |
| - <!-- <url>https://maven.pkg.github.com/contentstack/contentstack-java</url>--> |
100 |
| - <!-- </snapshotRepository>--> |
101 |
| - <!--Maven Release Repository--> |
| 95 | + <snapshotRepository> |
| 96 | + <id>github</id> |
| 97 | + <url>https://maven.pkg.github.com/contentstack/contentstack-java</url> |
| 98 | + </snapshotRepository> |
| 99 | + Maven Release Repository |
102 | 100 | <repository>
|
103 | 101 | <id>ossrh</id>
|
104 | 102 | <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
105 | 103 | </repository>
|
106 | 104 |
|
107 |
| - </distributionManagement> |
| 105 | + </distributionManagement> --> |
108 | 106 |
|
109 | 107 |
|
110 | 108 | <dependencies>
|
|
328 | 326 | </plugin>
|
329 | 327 |
|
330 | 328 | <plugin>
|
331 |
| - <groupId>org.sonatype.plugins</groupId> |
332 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
333 |
| - <version>${nexus-staging-maven-plugin.version}</version> |
| 329 | + <groupId>org.sonatype.central</groupId> |
| 330 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 331 | + <version>0.8.0</version> <!-- or latest --> |
334 | 332 | <extensions>true</extensions>
|
335 |
| - <!-- <configuration>--> |
336 |
| - <!-- <serverId>github</serverId>--> |
337 |
| - <!-- <nexusUrl>https://maven.pkg.github.com/contentstack/contentstack-java</nexusUrl>--> |
338 |
| - <!-- <autoReleaseAfterClose>true</autoReleaseAfterClose>--> |
339 |
| - <!-- </configuration>--> |
340 | 333 | <configuration>
|
341 |
| - <serverId>ossrh</serverId> |
342 |
| - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
343 |
| - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 334 | + <publishingServerId>central</publishingServerId> |
| 335 | + <autoPublish>true</autoPublish> |
| 336 | + <waitUntil>published</waitUntil> |
344 | 337 | </configuration>
|
345 | 338 | </plugin>
|
346 | 339 | <!--
|
|
0 commit comments