Feature/migration to central sonatype (#2410)

* Swtich to central sonatype

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

* parameterize version

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

* remove old ds management

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

---------

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>
This commit is contained in:
Stanislav Trailov
2025-05-20 08:51:04 +03:00
committed by GitHub
parent 045ba66738
commit 5f836c1ed1

19
pom.xml
View File

@@ -86,7 +86,7 @@
<maven.failsafe.plugin.version>3.5.3</maven.failsafe.plugin.version> <maven.failsafe.plugin.version>3.5.3</maven.failsafe.plugin.version>
<jacoco.maven.plugin.version>0.8.13</jacoco.maven.plugin.version> <jacoco.maven.plugin.version>0.8.13</jacoco.maven.plugin.version>
<nexus.staging.maven.plugin.version>1.7.0</nexus.staging.maven.plugin.version> <central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>
<maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version> <maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version>
<!-- Maven Plugin versions - END --> <!-- Maven Plugin versions - END -->
@@ -220,15 +220,10 @@
</developers> </developers>
<distributionManagement> <distributionManagement>
<repository>
<id>ossrh</id>
<name>hawkBit Repository - Release</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository> <snapshotRepository>
<id>ossrh</id> <id>ossrh</id>
<name>hawkBit Repository - Snapshots</name> <name>hawkBit Repository - Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url> <url>https://central.sonatype.com/repository/maven-snapshots/</url>
</snapshotRepository> </snapshotRepository>
</distributionManagement> </distributionManagement>
@@ -565,14 +560,12 @@
sure that all artifacts of a multi-module project are deployed as a whole sure that all artifacts of a multi-module project are deployed as a whole
at the end of the build process instead of deploying each module's artifacts at the end of the build process instead of deploying each module's artifacts
individually as part of building the module. --> individually as part of building the module. -->
<groupId>org.sonatype.plugins</groupId> <groupId>org.sonatype.central</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId> <artifactId>central-publishing-maven-plugin</artifactId>
<version>${nexus.staging.maven.plugin.version}</version> <version>${central.publishing.maven.plugin.version}</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<serverId>ossrh</serverId> <publishingServerId>central</publishingServerId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>