Skip to content

Commit

Permalink
Merge pull request #12 from openzipkin/publish-sonatype
Browse files Browse the repository at this point in the history
Enable artefact publishing configuration
  • Loading branch information
adriancole committed Sep 22, 2015
2 parents c2a41ad + 33adcc8 commit 7c2c050
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 40 deletions.
128 changes: 95 additions & 33 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>io.zipkin.experimental</groupId>
<groupId>io.zipkin</groupId>
<artifactId>zipkin-java</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>pom</packaging>
Expand Down Expand Up @@ -77,6 +77,17 @@
<developerConnection>scm:git:[email protected]:openzipkin/zipkin-java.git</developerConnection>
</scm>

<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>

<issueManagement>
<system>Github</system>
<url>https://github.com/openzipkin/zipkin-java/issues</url>
Expand Down Expand Up @@ -199,38 +210,6 @@
</pluginManagement>

<plugins>
<!-- Creates source jar -->
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Creates javadoc jar, skipping internal classes -->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<failOnError>false</failOnError>
<excludePackageNames>io.zipkin.internal,io.zipkin.internal.*</excludePackageNames>
</configuration>
<executions>
<execution>
<id>jar</id>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>

<!-- Ensures checksums are added to published jars -->
<plugin>
Expand Down Expand Up @@ -270,6 +249,89 @@
</execution>
</executions>
</plugin>

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

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- Creates source jar -->
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Creates javadoc jar, skipping internal classes -->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<failOnError>false</failOnError>
<excludePackageNames>io.zipkin.internal,io.zipkin.internal.*</excludePackageNames>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
</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>
2 changes: 1 addition & 1 deletion swift-codec/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.zipkin.experimental</groupId>
<groupId>io.zipkin</groupId>
<artifactId>zipkin-java</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>
Expand Down
2 changes: 1 addition & 1 deletion zipkin-java-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.zipkin.experimental</groupId>
<groupId>io.zipkin</groupId>
<artifactId>zipkin-java</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>
Expand Down
2 changes: 1 addition & 1 deletion zipkin-java-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.zipkin.experimental</groupId>
<groupId>io.zipkin</groupId>
<artifactId>zipkin-java</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>
Expand Down
2 changes: 1 addition & 1 deletion zipkin-java-query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.zipkin.experimental</groupId>
<groupId>io.zipkin</groupId>
<artifactId>zipkin-java</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>
Expand Down
2 changes: 1 addition & 1 deletion zipkin-java-scribe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.zipkin.experimental</groupId>
<groupId>io.zipkin</groupId>
<artifactId>zipkin-java</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>
Expand Down
2 changes: 1 addition & 1 deletion zipkin-java-server/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>zipkin-java</artifactId>
<groupId>io.zipkin.experimental</groupId>
<groupId>io.zipkin</groupId>
<version>0.1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion zipkin-java-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.zipkin.experimental</groupId>
<groupId>io.zipkin</groupId>
<artifactId>zipkin-java</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>
Expand Down

0 comments on commit 7c2c050

Please sign in to comment.