Skip to content

Commit

Permalink
switch examples to correct stub-lite usage (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesward authored Nov 2, 2020
1 parent 6749f8a commit 4250d5d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
11 changes: 1 addition & 10 deletions examples/stub-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@ dependencies {
implementation("javax.annotation:javax.annotation-api:1.3.2")

api("com.google.protobuf:protobuf-javalite:${rootProject.ext["protobufVersion"]}")
api("io.grpc:grpc-protobuf-lite:${rootProject.ext["grpcVersion"]}")

// todo: I think we should be able to just include this:
// api("io.grpc:grpc-kotlin-stub-lite:${rootProject.ext["grpcKotlinVersion"]}")
// but it doesn't pull transitives correctly

api("io.grpc:grpc-stub:${rootProject.ext["grpcVersion"]}")
api("io.grpc:grpc-kotlin-stub:${rootProject.ext["grpcKotlinVersion"]}") {
exclude("io.grpc", "grpc-protobuf")
}
api("io.grpc:grpc-kotlin-stub-lite:${rootProject.ext["grpcKotlinVersion"]}")
}

android {
Expand Down
11 changes: 1 addition & 10 deletions examples/stub-lite/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@ dependencies {
implementation("javax.annotation:javax.annotation-api:1.3.2")

api("com.google.protobuf:protobuf-javalite:${rootProject.ext["protobufVersion"]}")
api("io.grpc:grpc-protobuf-lite:${rootProject.ext["grpcVersion"]}")

// todo: I think we should be able to just include this:
// api("io.grpc:grpc-kotlin-stub-lite:${rootProject.ext["grpcKotlinVersion"]}")
// but it doesn't pull transitives correctly

api("io.grpc:grpc-stub:${rootProject.ext["grpcVersion"]}")
api("io.grpc:grpc-kotlin-stub:${rootProject.ext["grpcKotlinVersion"]}") {
exclude("io.grpc", "grpc-protobuf")
}
api("io.grpc:grpc-kotlin-stub-lite:${rootProject.ext["grpcKotlinVersion"]}")
}

java {
Expand Down
2 changes: 0 additions & 2 deletions examples/stub/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ dependencies {
implementation("javax.annotation:javax.annotation-api:1.3.2")

api("com.google.protobuf:protobuf-java-util:${rootProject.ext["protobufVersion"]}")
api("io.grpc:grpc-stub:${rootProject.ext["grpcVersion"]}")
api("io.grpc:grpc-protobuf:${rootProject.ext["grpcVersion"]}")
api("io.grpc:grpc-kotlin-stub:${rootProject.ext["grpcKotlinVersion"]}")
}

Expand Down

0 comments on commit 4250d5d

Please sign in to comment.