Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Add java_library statements for providing a lib with transitive deps #9

Merged
merged 6 commits into from
Feb 11, 2019

Conversation

davidsantiago
Copy link
Contributor

This commit is incomplete, due to a failing test. I messaged you briefly about it on Slack, but I really wonder if the test that is failing is not even worth having.

I also made some choices that I expect you'll have thoughts on (naming, etc), and I'm happy to yield to other ways to do things, I just wanted to get this started.

@jin
Copy link
Owner

jin commented Feb 7, 2019

as per your suggestion in the slack discussion, let's use a new library macro for the target with transitive exports, and keep the artifact behavior?

Copy link
Owner

@jin jin left a comment

Choose a reason for hiding this comment

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

Thank you so much for working on this!! Could you also add some documentation about the new targets to the README please?

coursier.bzl Outdated Show resolved Hide resolved
target_import_string.append("\t\t\":%s\"," % dep_target_label)
target_import_string.append("\t],")
target_import_labels.append("\t\t\":%s\",\n" % dep_target_label)
target_import_labels = _deduplicate_list(target_import_labels)
Copy link
Owner

Choose a reason for hiding this comment

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

nice!

coursier.bzl Outdated Show resolved Hide resolved
coursier.bzl Outdated Show resolved Hide resolved
@jin jin merged commit 3b906d9 into jin:master Feb 11, 2019
@jin
Copy link
Owner

jin commented Feb 11, 2019

Perfect! thank you.

jin pushed a commit that referenced this pull request Feb 28, 2019
#9)

* Add `java_library` statements for providing a lib with transitive deps exported.
Also, refactor common list deduplication code.

* Update artifact() and maven_artifact() to default to _lib targets.

* Include the jar in the corresponding library.

* Add library() and maven_library() to depend on java_library rules.

* Address code review feedback on variable naming.

* Update README with information on spec maps and library targets.
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.

None yet

2 participants