Skip to content

Commit

Permalink
Add @repo//jar:file target to java_import_external and jvm_maven_impo…
Browse files Browse the repository at this point in the history
…rt_external

This adds compatibility between maven_jar and the Starlark rules' API, and helps with migration from maven_jar as seen in bazelbuild/rules_scala#871

Closes #10324.

PiperOrigin-RevId: 282930614
  • Loading branch information
jin authored and copybara-github committed Nov 28, 2019
1 parent e93d82b commit 14513cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/build_defs/repo/jvm.bzl
Original file line number Diff line number Diff line change
@@ -123,6 +123,10 @@ def _jvm_import_external(repository_ctx):
" actual = \"@%s\"," % repository_ctx.name,
")",
"",
"filegroup(",
" name = \"file\",",
" srcs = [\"//:%s\"]," % path,
")",
]))

def _should_fetch_sources_in_current_env(repository_ctx):

0 comments on commit 14513cd

Please sign in to comment.