rules_jvm_external
rules_jvm_external copied to clipboard
Add support for resources in javadoc jars and make variable substitution in javadoc arguments
There's two use cases I'm trying to account for here.
- I need to add resources to the javadoc jar such as a
LICENSE
file. - I need to send a
--define
variable to the javadoc generator so that themaven_version
variable I have set will appear in the<title>
of the generated html. rules_jvm_external already supports the same type of substitution on thecoordinates
attribute.
java_export(
name = "lib",
maven_coordinates="com.example:lib:$(maven_version)",
...
javadocopts=["-windowtitle", "$(maven_version)"],
doc_resources = ["//:LICENSE"]
)