Skip to content

Commit

Permalink
Merge pull request #286 from GoogleCloudPlatform/tswast-speech
Browse files Browse the repository at this point in the history
Update dependencies for Speech sample.
  • Loading branch information
tswast authored Aug 12, 2016
2 parents 03a519a + 0f8d7ca commit a3cd590
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion speech/grpc/bin/speech-sample-async.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

SRC_DIR=$(cd "$(dirname "$0")/.."; pwd)
SRC_DIR="$( cd "$( dirname "$0" )/.." && pwd )"
java -cp "${SRC_DIR}/target/grpc-sample-1.0-jar-with-dependencies.jar" \
com.examples.cloud.speech.AsyncRecognizeClient "$@"
2 changes: 1 addition & 1 deletion speech/grpc/bin/speech-sample-streaming.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

SRC_DIR=$(cd "$(dirname "$0")/.."; pwd)
SRC_DIR="$( cd "$( dirname "$0" )/.." && pwd )"
java -cp "${SRC_DIR}/target/grpc-sample-1.0-jar-with-dependencies.jar" \
com.examples.cloud.speech.StreamingRecognizeClient "$@"
2 changes: 1 addition & 1 deletion speech/grpc/bin/speech-sample-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

SRC_DIR=$(cd "$(dirname "$0")/.."; pwd)
SRC_DIR="$( cd "$( dirname "$0" )/.." && pwd )"
java -cp "${SRC_DIR}/target/grpc-sample-1.0-jar-with-dependencies.jar" \
com.examples.cloud.speech.SyncRecognizeClient "$@"
24 changes: 16 additions & 8 deletions speech/grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,19 @@ limitations under the License.
<artifactId>commons-cli</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-oauth2-http</artifactId>
<version>0.4.0</version>
<exclusions>
<!-- Exclude an old version of guava that is being pulled
in by a transitive dependency of google-api-client -->
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava-jdk5</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand All @@ -131,12 +144,7 @@ limitations under the License.
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
<version>0.13.2</version>
</dependency>
<dependency>
<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
<version>1.21.0</version>
<version>0.15.0</version>
</dependency>
<dependency>
<!--
Expand All @@ -149,13 +157,13 @@ limitations under the License.
-->
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>1.1.33.Fork14</version>
<version>1.1.33.Fork20</version>
<classifier>${tcnative.classifier}</classifier>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>0.28</version>
<version>0.29</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import com.google.cloud.speech.v1beta1.RecognitionConfig;
import com.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding;
import com.google.cloud.speech.v1beta1.SpeechGrpc;

import com.google.longrunning.GetOperationRequest;
import com.google.longrunning.Operation;
import com.google.longrunning.OperationsGrpc;
Expand All @@ -33,7 +32,6 @@
import io.grpc.auth.ClientAuthInterceptor;
import io.grpc.netty.NegotiationType;
import io.grpc.netty.NettyChannelBuilder;

import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
Expand Down

0 comments on commit a3cd590

Please sign in to comment.