Skip to content

add --transitive-only option to export-classpath!#8605

Merged
wisechengyi merged 2 commits intopantsbuild:masterfrom
cosmicexplorer:transitive-only-export-classpath
Nov 10, 2019
Merged

add --transitive-only option to export-classpath!#8605
wisechengyi merged 2 commits intopantsbuild:masterfrom
cosmicexplorer:transitive-only-export-classpath

Conversation

@cosmicexplorer
Copy link
Copy Markdown
Contributor

Problem

We would like to be able to provide binary versions of all dependencies of specified root targets to an IDE with export-classpath, without providing binary versions of the target roots themselves (because the IDE will be indexing those itself, as source files). --query from #7350 might help here, but until that's developed a little further, it would be great to have this functionality now.

@olafurpg requested this change to help integrate pants with metals.

Solution

  • Add --transitive-only option to the export-classpath task which avoids publishing jars for target roots, and instead only pulls in their dependencies!

Copy link
Copy Markdown
Contributor

@wisechengyi wisechengyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Danny! just some nits.

@cosmicexplorer cosmicexplorer force-pushed the transitive-only-export-classpath branch from a4ae65f to 3d3f95c Compare November 9, 2019 19:29
@wisechengyi wisechengyi merged commit 27b2b1c into pantsbuild:master Nov 10, 2019
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