Skip to content

Commit

Permalink
Adding google-http-client-jackson2 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo committed Apr 12, 2021
1 parent 6c1d347 commit f282366
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
22 changes: 12 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ subprojects {
nettyVersion = '4.1.52.Final'
guavaVersion = '30.0-android'
googleauthVersion = '0.25.2'
googlehttpVersion = '1.39.1'
protobufVersion = '3.12.0'
protocVersion = protobufVersion
opencensusVersion = '0.28.0'
Expand Down Expand Up @@ -155,6 +156,7 @@ subprojects {
google_api_protos: 'com.google.api.grpc:proto-google-common-protos:2.0.1',
google_auth_credentials: "com.google.auth:google-auth-library-credentials:${googleauthVersion}",
google_auth_oauth2_http: "com.google.auth:google-auth-library-oauth2-http:${googleauthVersion}",
google_htt_client_jackson2: "com.google.http-client:google-http-client-jackson2:${googlehttpVersion}",
okhttp: 'com.squareup.okhttp:okhttp:2.7.4',
okio: 'com.squareup.okio:okio:1.17.5',
opencensus_api: "io.opencensus:opencensus-api:${opencensusVersion}",
Expand Down Expand Up @@ -254,16 +256,6 @@ subprojects {
dependencies.runtimeOnly project(':grpc-context')
censusApiDependency 'runtimeOnly'
guavaDependency 'runtimeOnly'

// We can remove this dependency override once org.apache.httpcomponents:httpclient:4.5.13
// is released with org.apache.httpcomponents:httpcore:4.4.14 dependency, and
// com.google.http-client:google-http-client:1.39.1 is upgraded with them.
// https://github.com/grpc/grpc-java/issues/8037
configurations.all {
resolutionStrategy {
force 'org.apache.httpcomponents:httpcore:4.4.14'
}
}
}

// A util function to config perfmark dependency with transitive
Expand Down Expand Up @@ -299,6 +291,16 @@ subprojects {
])) {
runtimeClasspath {
resolutionStrategy.failOnVersionConflict()

// We can remove this dependency override once org.apache.httpcomponents:httpclient:4.5.13
// is released with org.apache.httpcomponents:httpcore:4.4.14 dependency, and
// com.google.http-client:google-http-client:1.39.1 is upgraded with them.
// https://github.com/grpc/grpc-java/issues/8037
configurations.all {
resolutionStrategy {
force 'org.apache.httpcomponents:httpcore:4.4.14'
}
}
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion xds/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ dependencies {
libraries.gson,
libraries.re2j,
libraries.bouncycastle,
libraries.autovalue_annotation
libraries.autovalue_annotation,
libraries.google_htt_client_jackson2
def nettyDependency = implementation project(':grpc-netty')

implementation (libraries.opencensus_proto) {
Expand Down

0 comments on commit f282366

Please sign in to comment.