-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
context, all: move Context classes to grpc-api (#10313)
* context, all: move Context classes to grpc-api clean up grpc-context since it has no source code: only add dep on grpc-api add exclusion for all transitive deps of grpc-api - only guava exclude grpc-context as a dependency from grpc-alts because all context code is in grpc-api now api: 1.7 as target Java version for Context source-set of grpc-api * core, census: fix the issues with android project pulling in old grpc-context version * api,context: make changes to bazel build files to account for context code moving from context to api
- Loading branch information
1 parent
d654707
commit 4d2c3aa
Showing
23 changed files
with
40 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
java_library( | ||
name = "context", | ||
srcs = glob([ | ||
"src/main/java/**/*.java", | ||
]), | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,14 @@ | ||
plugins { | ||
id "java" | ||
id "java-test-fixtures" | ||
id "java-library" | ||
id "maven-publish" | ||
|
||
id "me.champeau.gradle.japicmp" | ||
id "me.champeau.jmh" | ||
id "ru.vyarus.animalsniffer" | ||
} | ||
|
||
description = 'gRPC: Context' | ||
|
||
sourceCompatibility = 1.7 | ||
targetCompatibility = 1.7 | ||
|
||
dependencies { | ||
testFixturesApi libraries.truth | ||
// Explicitly choose the guava version to stay Java 7-compatible. | ||
testFixturesImplementation 'com.google.guava:guava:30.1.1-android' | ||
testFixturesImplementation libraries.jsr305 | ||
testImplementation libraries.jsr305 | ||
// Explicitly choose the guava version to stay Java 7-compatible. The rest of gRPC can move | ||
// forward to Java 8-requiring versions. This is also only used for testing, so is unlikely to | ||
// cause problems. | ||
testImplementation 'com.google.guava:guava-testlib:30.1.1-android' | ||
signature "org.codehaus.mojo.signature:java17:1.0@signature" | ||
signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature" | ||
runtimeOnly (project(":grpc-api")) { | ||
exclude group: "com.google.guava", module: "guava" | ||
exclude group: "com.google.code.findbugs", module: "jsr305" | ||
exclude group: "com.google.errorprone", module: "error_prone_annotations" | ||
} | ||
} | ||
|
||
components.java.withVariantsFromConfiguration(configurations.testFixturesApiElements) { skip() } | ||
components.java.withVariantsFromConfiguration(configurations.testFixturesRuntimeElements) { skip() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters