bazel-deps icon indicating copy to clipboard operation
bazel-deps copied to clipboard

scala_import doesn't support licenses

Open bjchambers opened this issue 7 years ago • 1 comments

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.

bjchambers avatar Aug 09 '18 02:08 bjchambers

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?

richwhitjr avatar Aug 09 '18 14:08 richwhitjr