diff options
| -rw-r--r-- | pom.xml | 79 | 
1 files changed, 79 insertions, 0 deletions
| @@ -52,6 +52,28 @@                      <target>1.8</target>                  </configuration>              </plugin> +            <plugin> +                <groupId>org.apache.maven.plugins</groupId> +                <artifactId>maven-release-plugin</artifactId> +                <version>2.5.3</version> +                <configuration> +                    <tagNameFormat>v@{project.version}</tagNameFormat> +                    <useReleaseProfile>false</useReleaseProfile> +                    <releaseProfiles>release</releaseProfiles> +                    <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> @@ -60,4 +82,61 @@          <url>scm:git:git@github.com:PuyallupFoursquare/ccb-api-client-java.git</url>          <developerConnection>scm:git:git@github.com:PuyallupFoursquare/ccb-api-client-java.git</developerConnection>      </scm> + +    <distributionManagement> +        <snapshotRepository> +            <id>ossrh</id> +            <url>https://oss.sonatype.org/content/repositories/snapshots</url> +        </snapshotRepository> +    </distributionManagement> + +    <profiles> +        <profile> +            <id>release</id> +            <build> +                <plugins> +                    <plugin> +                        <groupId>org.apache.maven.plugins</groupId> +                        <artifactId>maven-source-plugin</artifactId> +                        <version>2.2.1</version> +                        <executions> +                            <execution> +                                <id>attach-sources</id> +                                <goals> +                                    <goal>jar-no-fork</goal> +                                </goals> +                            </execution> +                        </executions> +                    </plugin> +                    <plugin> +                        <groupId>org.apache.maven.plugins</groupId> +                        <artifactId>maven-javadoc-plugin</artifactId> +                        <version>2.9.1</version> +                        <executions> +                            <execution> +                                <id>attach-javadocs</id> +                                <goals> +                                    <goal>jar</goal> +                                </goals> +                            </execution> +                        </executions> +                    </plugin> +                    <plugin> +                        <groupId>org.apache.maven.plugins</groupId> +                        <artifactId>maven-gpg-plugin</artifactId> +                        <version>1.5</version> +                        <executions> +                            <execution> +                                <id>sign-artifacts</id> +                                <phase>verify</phase> +                                <goals> +                                    <goal>sign</goal> +                                </goals> +                            </execution> +                        </executions> +                    </plugin> +                </plugins> +            </build> +        </profile> +    </profiles>  </project> | 
