-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #615 from basho/features/lrb/integrate-riak-pb
READY: Add riak_pb submodule
- Loading branch information
Showing
14 changed files
with
74,056 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "tools"] | ||
path = tools | ||
url = https://github.com/basho/riak-client-tools/ | ||
[submodule "riak_pb"] | ||
path = riak_pb | ||
url = https://github.com/basho/riak_pb.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.PHONY: compile test unit-test integration-test protogen | ||
|
||
compile: | ||
mvn clean compile | ||
|
||
test: unit-test integration-test | ||
|
||
unit-test: | ||
mvn test | ||
|
||
integration-test: | ||
mvn -Pitest,default -Dcom.basho.riak.2i=true -Dcom.basho.riak.yokozuna=true -Dcom.basho.riak.buckettype=true -Dcom.basho.riak.crdt=true -Dcom.basho.riak.lifecycle=true verify | ||
|
||
protogen: | ||
mvn -Pprotobuf-generate generate-sources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ | |
<name>Riak Client for Java</name> | ||
<description>Java client for Riak 2.0</description> | ||
<url>https://github.com/basho/riak-java-client</url> | ||
<prerequisites> | ||
<maven>3.0</maven> | ||
</prerequisites> | ||
|
||
<licenses> | ||
<license> | ||
|
@@ -42,6 +45,12 @@ | |
<organization>Basho Technologies, Inc</organization> | ||
<organizationUrl>http://www.basho.com</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Luke Bakken</name> | ||
<email>[email protected]</email> | ||
<organization>Basho Technologies, Inc</organization> | ||
<organizationUrl>http://www.basho.com</organizationUrl> | ||
</developer> | ||
</developers> | ||
|
||
<scm> | ||
|
@@ -103,7 +112,7 @@ | |
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-failsafe-plugin</artifactId> | ||
<version>2.16</version> | ||
<version>2.19.1</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
|
@@ -129,7 +138,7 @@ | |
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>2.4</version> | ||
<version>2.6</version> | ||
<configuration> | ||
<descriptors> | ||
<descriptor>src/main/assembly/jar-with-dependencies.xml</descriptor> | ||
|
@@ -190,47 +199,92 @@ | |
<artifactId>maven-javadoc-plugin</artifactId> | ||
<configuration> | ||
<additionalparam>-Xdoclint:none</additionalparam> | ||
<excludePackageNames>com.basho.riak.protobuf.util</excludePackageNames> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>protobuf-generate</id> | ||
<activation> | ||
<property> | ||
<name>protobuf-generate</name> | ||
<value>true</value> | ||
</property> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.webguys</groupId> | ||
<artifactId>string-template-maven-plugin</artifactId> | ||
<version>1.1</version> | ||
<configuration> | ||
<templates> | ||
<template> | ||
<directory>${basedir}/src/main/resources</directory> | ||
<name>RiakMessageCodes</name> | ||
<target>${basedir}/src/main/java/com/basho/riak/protobuf/RiakMessageCodes.java</target> | ||
<controller> | ||
<className>com.basho.riak.protobuf.util.TemplateController</className> | ||
<method>getProperties</method> | ||
</controller> | ||
</template> | ||
</templates> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>render</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.twdata.maven</groupId> | ||
<artifactId>mojo-executor</artifactId> | ||
<version>2.2.0</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
<plugin> | ||
<groupId>com.github.igor-petruk.protobuf</groupId> | ||
<artifactId>protobuf-maven-plugin</artifactId> | ||
<version>0.6.5</version> | ||
<configuration> | ||
<cleanOutputFolder>false</cleanOutputFolder> | ||
<inputDirectories> | ||
<directory>${basedir}/riak_pb/src</directory> | ||
</inputDirectories> | ||
<outputDirectory>${project.build.sourceDirectory}</outputDirectory> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>versions-maven</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>versions-maven-plugin</artifactId> | ||
<version>2.2</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<version>2.1</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<shadedArtifactAttached>false</shadedArtifactAttached> | ||
<createDependencyReducedPom>true</createDependencyReducedPom> | ||
<artifactSet> | ||
<includes> | ||
<include>com.google.protobuf:protobuf-java</include> | ||
<include>com.basho.riak.protobuf:riak-pb</include> | ||
</includes> | ||
</artifactSet> | ||
<relocations> | ||
<relocation> | ||
<pattern>com.google.protobuf</pattern> | ||
<shadedPattern>shaded.com.google.protobuf</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>com.basho.riak.protobuf</pattern> | ||
<shadedPattern>shaded.com.basho.riak.protobuf</shadedPattern> | ||
</relocation> | ||
</relocations> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.5.2</version> | ||
|
@@ -257,18 +311,17 @@ | |
</goals> | ||
</execution> | ||
</executions> | ||
|
||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.1</version> | ||
<version>3.5.1</version> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
<compilerArgs> | ||
<arg>-Werror</arg> | ||
<arg>-Xlint:all</arg> | ||
<arg>-Werror</arg> | ||
<arg>-Xlint:all</arg> | ||
</compilerArgs> | ||
</configuration> | ||
</plugin> | ||
|
@@ -309,15 +362,18 @@ | |
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.9.1</version> | ||
<version>2.10.3</version> | ||
<configuration> | ||
<excludePackageNames>com.basho.riak.protobuf.util</excludePackageNames> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>1.7.2</version> | ||
<version>1.7.21</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
|
@@ -352,12 +408,12 @@ | |
<dependency> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-databind</artifactId> | ||
<version>2.2.2</version> | ||
<version>2.7.3</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.fasterxml.jackson.datatype</groupId> | ||
<artifactId>jackson-datatype-joda</artifactId> | ||
<version>2.2.2</version> | ||
<version>2.7.3</version> | ||
<type>jar</type> | ||
</dependency> | ||
<dependency> | ||
|
@@ -366,9 +422,14 @@ | |
<version>4.0.33.Final</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.basho.riak.protobuf</groupId> | ||
<artifactId>riak-pb</artifactId> | ||
<version>2.1.1.0</version> | ||
<groupId>com.google.protobuf</groupId> | ||
<artifactId>protobuf-java</artifactId> | ||
<version>2.6.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.antlr</groupId> | ||
<artifactId>antlr-complete</artifactId> | ||
<version>3.5.2</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.