Skip to content

core: add strongly-typed ServiceConfigProto class for test #4369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ subprojects {
javax_annotation: 'javax.annotation:javax.annotation-api:1.2',
jsr305: 'com.google.code.findbugs:jsr305:3.0.0',
oauth_client: 'com.google.auth:google-auth-library-oauth2-http:0.9.0',
google_api_protos: 'com.google.api.grpc:proto-google-common-protos:1.0.0',
google_api_protos: 'com.google.api.grpc:proto-google-common-protos:1.9.0',
google_auth_credentials: 'com.google.auth:google-auth-library-credentials:0.9.0',
okhttp: 'com.squareup.okhttp:okhttp:2.5.0',
okio: 'com.squareup.okio:okio:1.13.0',
Expand Down
24 changes: 23 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Add dependency on the protobuf plugin
buildscript {
repositories {
maven {
// The google mirror is less flaky than mavenCentral()
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
}
}
dependencies {
classpath libraries.protobuf_plugin
}
}

description = 'gRPC: Core'

dependencies {
Expand Down Expand Up @@ -28,7 +41,10 @@ dependencies {
}

testCompile project(':grpc-context').sourceSets.test.output,
project(':grpc-testing')
project(':grpc-testing'),
libraries.google_api_protos,
libraries.protobuf,
libraries.protobuf_util

signature "org.codehaus.mojo.signature:java16:1.1@signature"
}
Expand All @@ -43,3 +59,9 @@ animalsniffer {
// Don't check sourceSets.jmh
sourceSets = [sourceSets.main, sourceSets.test]
}

compileTestJava {
options.compilerArgs += "-Xlint:-deprecation" // for enums in proto
}

configureProtoCompilation()
Loading