Skip to content

Commit

Permalink
update release configuration
Browse files Browse the repository at this point in the history
It now matches the currently preferred approach as per http://central.sonatype.org/pages/apache-maven.html
  • Loading branch information
pettermahlen committed Jan 8, 2016
1 parent b1eb208 commit 8f9007a
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
</description>
<url>https://github.com/spotify/dns-java</url>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<guava.version>12.0</guava.version>
Expand Down Expand Up @@ -107,10 +101,6 @@
<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>

<profiles>
Expand Down Expand Up @@ -219,19 +209,6 @@
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<pushChanges>false</pushChanges>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down Expand Up @@ -333,6 +310,30 @@
<repoToken>${coveralls.token}</repoToken>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<pushChanges>false</pushChanges>
<goals>deploy</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 8f9007a

Please sign in to comment.