Skip to content

Commit

Permalink
Merge pull request #4 from beala-stripe/master
Browse files Browse the repository at this point in the history
Provide JavaInfo so jarjar targets can be a dep of scala targets.
  • Loading branch information
johnynek authored Jul 28, 2018
2 parents 4005d99 + 478cb2d commit b19b2ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jar_jar.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ def _jar_jar_impl(ctx):
progress_message="jarjar %s" % ctx.label,
arguments=["process", ctx.file.rules.path, ctx.file.input_jar.path, ctx.outputs.jar.path])

return JavaInfo(
output_jar = ctx.outputs.jar,
compile_jar = ctx.outputs.jar
)

jar_jar = rule(
implementation = _jar_jar_impl,
attrs = {
Expand All @@ -16,7 +21,8 @@ jar_jar = rule(
},
outputs = {
"jar": "%{name}.jar"
})
},
provides = [JavaInfo])

def _mvn_name(coord):
nocolon = "_".join(coord.split(":"))
Expand Down

0 comments on commit b19b2ab

Please sign in to comment.