Skip to content

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

Merged
sanjaypujare merged 5 commits intogrpc:masterfrom
sanjaypujare:java9-modules-modified
Jun 29, 2023
Merged

context, all: move Context classes to grpc-api#10313
sanjaypujare merged 5 commits intogrpc:masterfrom
sanjaypujare:java9-modules-modified

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
@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

@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