bazeltools / bazel_jar_jar

JarJar rules for bazel (rename packages and classes in existing jars)
Apache License 2.0
18 stars 24 forks source link

Use attr.output instead of deprecated outputs dict #21

Closed fmeum closed 2 years ago

fmeum commented 2 years ago

Backwards compatibility is preserved by wrapping the jar_jar rule in a macro that populates the new output_jar attribute if the user doesn't set it. The output of a jar_jar target can still be referenced as a file target as demonstrated by new tests.

In addition, user can now provide a custom name for the output jar.

fmeum commented 2 years ago

Stacked on #20, please review that one first.