Skip to content

Filter abi jar from jdeps classpath#1340

Open
rbeazleyspot wants to merge 1 commit intobazel-contrib:masterfrom
rbeazleyspot:rework_direct_deps
Open

Filter abi jar from jdeps classpath#1340
rbeazleyspot wants to merge 1 commit intobazel-contrib:masterfrom
rbeazleyspot:rework_direct_deps

Conversation

@rbeazleyspot
Copy link
Copy Markdown
Contributor

@rbeazleyspot rbeazleyspot commented Jun 23, 2025

Following on from #1337 (a particularly l33t PR), it was noticed that the --direct_dependencies (used for the jdeps compiler plugin) include the ABI jar for an associate when instead the runtime class jar should be used.

This is a proposal to remedy this, instead of generating a list of compile jars from the targets deps at the point of compiler flag generation. This list is pre-generated in the jvm_deps functions where the abi jar can be filtered out.

It turns out that this list is identical to the compile_jars list when experimental_prune_transitive_deps is enabled, so when this stops being experimental things should get much simpler.

@rbeazleyspot rbeazleyspot marked this pull request as ready for review June 23, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants