Skip to content

Commit

Permalink
Merge pull request #66 from Gmugra/45_Prepare_pom.xml_for_releases
Browse files Browse the repository at this point in the history
#45 : Prepare pom.xml for releases
  • Loading branch information
Gmugra authored Apr 30, 2021
2 parents b2ea9df + fb3c112 commit 62b696f
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
<plugin.release>3.0.0-M1</plugin.release>
<plugin.flatten>1.2.5</plugin.flatten>
<plugin.jxr>3.0.0</plugin.jxr>
<plugin.gpg>1.6</plugin.gpg>
<plugin.nexus-staging>1.6.8</plugin.nexus-staging>

<plugin.checkstyle>3.1.1</plugin.checkstyle>
<dependency.checkstyle>8.41.1</dependency.checkstyle>
Expand Down Expand Up @@ -266,6 +268,17 @@
<version>${plugin.release}</version>
</plugin>

<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>${plugin.gpg}</version>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${plugin.nexus-staging}</version>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
Expand Down Expand Up @@ -497,6 +510,65 @@
</build>
</profile>

<profile>
<id>github</id>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Gmugra Apache Maven Packages</name>
<url>https://maven.pkg.github.com/Gmugra/net.cactusthorn.config</url>
</repository>
</distributionManagement>

</profile>

<profile>
<id>ossrh</id>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<build>
<plugins>

<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>

</plugins>
</build>

</profile>

</profiles>

</project>

0 comments on commit 62b696f

Please sign in to comment.