Updated pom.xml to be able to deploy to Maven central.

Change-Id: Ie28dda5e1854eeff3e254e975925ff846c137008
parent 6bb0a728
...@@ -5,17 +5,20 @@ ...@@ -5,17 +5,20 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.google.flatbuffers</groupId> <groupId>com.google.flatbuffers</groupId>
<artifactId>flatbuffers-java</artifactId> <artifactId>flatbuffers-java</artifactId>
<version>1.7.1-SNAPSHOT</version> <version>1.7.2</version>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>FlatBuffers Java API</name> <name>FlatBuffers Java API</name>
<description> <description>
Memory Efficient Serialization Library Memory Efficient Serialization Library
</description> </description>
<developers>
<developer>
<name>Wouter van Oortmerssen</name>
</developer>
</developers>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<url>https://github.com/google/flatbuffers</url> <url>https://github.com/google/flatbuffers</url>
<licenses> <licenses>
<license> <license>
...@@ -32,6 +35,12 @@ ...@@ -32,6 +35,12 @@
</scm> </scm>
<dependencies> <dependencies>
</dependencies> </dependencies>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<build> <build>
<sourceDirectory>java</sourceDirectory> <sourceDirectory>java</sourceDirectory>
<plugins> <plugins>
...@@ -84,6 +93,42 @@ ...@@ -84,6 +93,42 @@
<version>3.0.1</version> <version>3.0.1</version>
<extensions>true</extensions> <extensions>true</extensions>
</plugin> </plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</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-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment