Skip to content

Commit

Permalink
Merge pull request #63 from logchange/ossrh-config
Browse files Browse the repository at this point in the history
Maven ossrh deployment configuration update
  • Loading branch information
marwin1991 authored Jan 17, 2025
2 parents 413fd89 + ba0dc8a commit 16a1cef
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 36 deletions.
3 changes: 2 additions & 1 deletion changelog/unreleased/000061-maven-deployment-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ type: changed #[added/changed/deprecated/removed/fixed/security/other]
issues:
- 61
merge_requests:
- 62
- 62
- 63
2 changes: 0 additions & 2 deletions hofund-spring-boot-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,5 @@
<artifactId>micrometer-registry-prometheus</artifactId>
<optional>true</optional>
</dependency>

</dependencies>

</project>
25 changes: 16 additions & 9 deletions hofund-spring-boot-e2e/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,22 @@
<injectAllReactorProjects>true</injectAllReactorProjects>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>ci-cd</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
1 change: 0 additions & 1 deletion hofund-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@
<version>${oshi-core.version}</version>
</dependency>
</dependencies>

</project>
1 change: 0 additions & 1 deletion hofund-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@
<artifactId>spring-core</artifactId>
</dependency>
</dependencies>

</project>
34 changes: 12 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<maven-deploy-plugin.version>3.1.3</maven-deploy-plugin.version>
<spring-boot.version>3.3.1</spring-boot.version>
<oshi-core.version>6.6.5</oshi-core.version>

Expand Down Expand Up @@ -126,15 +125,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
<inherited>false</inherited>
</plugin>
</plugins>
</build>

Expand All @@ -143,6 +133,18 @@
<id>ci-cd</id>
<build>
<plugins>
<plugin>
<!-- https://central.sonatype.org/publish/publish-maven/#nexus-staging-maven-plugin-for-deployment-and-release -->
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down Expand Up @@ -176,18 +178,6 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- https://central.sonatype.org/publish/publish-maven/#nexus-staging-maven-plugin-for-deployment-and-release -->
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit 16a1cef

Please sign in to comment.