bazel-deps
bazel-deps copied to clipboard
scala_import doesn't support licenses
When using licenses with dependencies using language: scala, the following error occurs:
//third_party/maven/<group>:<artifact>: no such attribute 'licenses' in 'scala_import' rule
Unfortunately, simply omitting the licenses doesn't work, since Bazel still rejects dependencies on third_party dependencies with improper licensing.
For the time being, a work around is to to use licenses(["permissive"]) in the build_header.
Seeing this also. I would be open to taking a shot at a PR if the best option was pointed out. Looks like you can't simply changing the code generation to licenses(["permissive"]) since java_import required the current syntax.
Maybe best to change scala_import itself?