Skip to content

Commit

Permalink
Merge pull request pinterest#115 from HenryCaiHaiying/master
Browse files Browse the repository at this point in the history
Add support to enable deploy/publish through SonaType to maven central
  • Loading branch information
HenryCaiHaiying committed Jul 25, 2015
2 parents d7ba0a8 + 9b8afe0 commit 86956be
Showing 1 changed file with 101 additions and 2 deletions.
103 changes: 101 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
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>com.pinterest.secor</groupId>
<groupId>com.pinterest</groupId>
<artifactId>secor</artifactId>
<version>0.1-SNAPSHOT</version>
<version>0.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>secor</name>
<description>Kafka to s3 logs exporter</description>
<url>https://github.com/pinterest/secor</url>

<licenses>
<license>
Expand All @@ -19,13 +21,49 @@
</license>
</licenses>

<developers>
<developer>
<id>pgarbacki</id>
<name>Pawel Garbacki</name>
</developer>
<developer>
<id>yuyang</id>
<name>Yu Yang</name>
</developer>
<developer>
<id>ramki</id>
<name>Ramki Venkatachalam</name>
</developer>
<developer>
<id>hcai</id>
<name>Henry Cai</name>
</developer>
</developers>

<scm>
<connection>https://github.com/pinterest/secor.git</connection>
<developerConnection>https://github.com/pinterest/secor.git</developerConnection>
<url>https://github.com/pinterest/secor</url>
</scm>

<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<encoding>UTF-8</encoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

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

<repositories>
<repository>
<id>Twitter public Maven repo</id>
Expand Down Expand Up @@ -326,6 +364,67 @@
</execution>
</executions>
</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>

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

0 comments on commit 86956be

Please sign in to comment.