Skip to content
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

context, all: move Context classes to grpc-api #10313

Merged
merged 5 commits into from
Jun 29, 2023

Conversation

sanjaypujare
Copy link
Contributor

@sanjaypujare sanjaypujare commented Jun 26, 2023

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

Fixes #3522

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
api/build.gradle Outdated Show resolved Hide resolved
context/build.gradle Show resolved Hide resolved
xds/build.gradle Outdated Show resolved Hide resolved
testing/build.gradle Show resolved Hide resolved
context/build.gradle Show resolved Hide resolved
api/build.gradle Outdated Show resolved Hide resolved
api/build.gradle Outdated Show resolved Hide resolved
api/build.gradle Outdated Show resolved Hide resolved
@ejona86
Copy link
Member

ejona86 commented Jun 27, 2023

We'll need to make sure Context is in the sources jar and the javadoc. Mirror #10315 for the sources jar. Javadoc would look something like:

tasks.named("javadoc").configure {
    source sourceSets.context.allSource
}

@sanjaypujare
Copy link
Contributor Author

Addressed all review comments so far, but changes for bazel failures are still pending.

@sanjaypujare
Copy link
Contributor Author

sanjaypujare commented Jun 27, 2023

@ejona86 addressed all your comments and fixed bazel build. Also all tests have passed. PTAL. Thx

census/build.gradle Show resolved Hide resolved
context/BUILD.bazel Outdated Show resolved Hide resolved
context/build.gradle Show resolved Hide resolved
core/build.gradle Show resolved Hide resolved
@sanjaypujare sanjaypujare merged commit 4d2c3aa into grpc:master Jun 29, 2023
@sanjaypujare sanjaypujare deleted the java9-modules-modified branch June 29, 2023 01:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gRPC Java is not usable from Java 9 modules
3 participants