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

Add a case to the test_workspace which proves that the compile-time transitive deps are present. #55

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

cgruber
Copy link
Collaborator

@cgruber cgruber commented Feb 27, 2019

If B deps on A as a part of API, e.g. inheriting from a class, A must be in the compilation classpath. This case adds a java_library example and a kt_jvm_library example of just such a case (rxjava2's Flowable and reactive-streaming's Publisher). This succeeds in the java_library case, so it's clear bazel_maven_repository's construction of a JavaInfo is sound. It fails in kotlin (even java compiled by the kotlin rules' kotlinc invocation) because it has half-baked strict-deps support, and ends up not consuming the proper classpath. Because it fails, it's commented out with a note pointing at the issue bazelbuild/rules_kotlin#132. This can be commented out at hte point where it's fixed.

This tests for the regression noticed in #54 but doesn't fix it since it's not a bug in this project.

…ransitive deps are present.

If B deps on A as a part of API, e.g. inheriting from a class, A must be in the compilation classpath.  This case adds a java_library example and a kt_jvm_library example of just such a case (rxjava2's Flowable and reactive-streaming's Publisher).  This succeeds in the java_library case, so it's clear bazel_maven_repository's construction of a JavaInfo is sound. It fails in kotlin (even java compiled by the kotlin rules' kotlinc invocation) because it has half-baked strict-deps support, and ends up not consuming the proper classpath. Because it fails, it's commented out with a note pointing at the issue bazelbuild/rules_kotlin#132.  This can be commented out at hte point where it's fixed.
@cgruber cgruber requested a review from rjrjr February 27, 2019 00:17
@cgruber cgruber self-assigned this Feb 27, 2019
@cgruber cgruber added Type-cleanup Clean code, or other code or project hygiene Priority-2 Useful feature, and should be on the roadmap Type-documentation Updates or improvements to the documentation labels Feb 27, 2019
@cgruber cgruber merged commit 1598902 into square:master Feb 28, 2019
@cgruber cgruber deleted the fix_transitive_deps branch February 28, 2019 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority-2 Useful feature, and should be on the roadmap Type-cleanup Clean code, or other code or project hygiene Type-documentation Updates or improvements to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants