Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #56 from deflaux/master
Browse files Browse the repository at this point in the history
Bump gRPC version.
  • Loading branch information
deflaux committed Aug 14, 2015
2 parents 0f0ee2a + 60d26ef commit b0bf45a
Show file tree
Hide file tree
Showing 147 changed files with 5,410 additions and 49,834 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,17 @@ At the moment your project must be whitelisted to use gRPC. Please

###Generating gRPC code
Users should typically **not** need to generate gRPC code themselves, as pre-generated code can be found
in [src/main/java/com/google/genomics/v1](src/main/java/com/google/genomics/v1). For developers, code can be generated with Gradle by running

```
gradle :generateProto
```

which will create code in target/generated-sources/main.
in [src/main/java/com/google/genomics/v1](src/main/java/com/google/genomics/v1). For developers, code can be generated with
* Gradle by running `gradle :generateProto` which will create code in target/generated-sources/main.
* Maven by uncommenting the goals for `maven-protoc-plugin` in pom.xml.

##Code Layout

* [com.google.cloud.genomics.utils](src/main/java/com/google/cloud/genomics/utils)
* [GenomicsFactory.java](src/main/java/com/google/cloud/genomics/utils/GenomicsFactory.java) Makes it easier to construct an authenticated Genomics service.
* [Paginator.java](src/main/java/com/google/cloud/genomics/utils/Paginator.java) Lazily paginates through readsets, reads, variants, callsets, etc...
* [com.google.cloud.genomics.grpc](src/main/java/com/google/cloud/genomics/grpc)
* [Channels.java](src/main/java/com/google/cloud/genomics/grpc/Channels.java) Makes it easier to creating gRPC channels to the Google Genomics API.
* [com.google.cloud.genomics.utils.grpc](src/main/java/com/google/cloud/genomics/utils/grpc)
* [Channels.java](src/main/java/com/google/cloud/genomics/utils/grpc/Channels.java) Makes it easier to creating gRPC channels to the Google Genomics API.
* [Example.java](src/main/java/com/google/cloud/genomics/utils/grpc/Example.java) Demonstrates usage of gRPC via a minimal example.
* To run the example with Java 7:
```
Expand Down
64 changes: 55 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@
</repository>
</distributionManagement>

<!-- This repository is for grpc-java snapshot builds. -->
<repositories>
<repository>
<id>localrepo</id>
<url>file://${basedir}/repo</url>
</repository>
<repository>
<id>ossrh-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
Expand All @@ -70,6 +67,25 @@
</repository>
</repositories>

<!-- This repository is for grpc-java protoc plugin. -->
<pluginRepositories>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</pluginRepository>
<pluginRepository>
<id>protoc-plugin</id>
<url>https://dl.bintray.com/sergei-ivanov/maven/</url>
</pluginRepository>
</pluginRepositories>

<dependencies>
<dependency>
<groupId>com.github.samtools</groupId>
Expand Down Expand Up @@ -120,10 +136,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
<version>0.7.2</version>
<!-- <version>0.7.3-SNAPSHOT</version> -->
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
<version>0.8.0</version>
</dependency>

<!-- Used to test the custom builder logic -->
Expand Down Expand Up @@ -178,7 +193,14 @@
</profiles>

<build>
<plugins>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.2.3.Final</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -221,6 +243,30 @@
<artifactId>coveralls-maven-plugin</artifactId>
<version>2.2.0</version>
</plugin>
<plugin>
<groupId>com.google.protobuf.tools</groupId>
<artifactId>maven-protoc-plugin</artifactId>
<version>0.4.2</version>
<configuration>
<!--
The version of protoc must match protobuf-java. If you don't depend on
protobuf-java directly, you will be transitively depending on the
protobuf-java version that grpc depends on.
-->
<protocArtifact>com.google.protobuf:protoc:3.0.0-alpha-3.1:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:0.8.0:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
<executions>
<execution>
<goals>
<!-- Uncomment these goals to generate java source from protos. -->
<!-- <goal>compile</goal> -->
<!-- <goal>compile-custom</goal> -->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
78 changes: 48 additions & 30 deletions src/main/java/com/google/api/CustomHttpPattern.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main/java/com/google/api/HttpProto.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b0bf45a

Please sign in to comment.