bazel-contrib / bazel-contrib/rules_scala

maven_jar dependencies no longer work, as of #523

Open
#565 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
384
Forks
292
Avg merge
3d 3m
Merged PRs (30d)
42

Description

#523 broke dependencies on jars with macros (scalactic, scala-logging, shapeless, scalatest). I'm using `maven_jar` and for the dependencies that have macros, I use `@the_dependency//jar:file`. That no longer works, because `:file` doesn't have `JavaInfo`. Removing `:file` makes the compiler fail. What's the new recommended way of importing e.g. scalatest?

Contributor guide

Open the contributing guide

Research direction

Start by reading the change in #523 and the issue's maven_jar examples, especially @the_dependency//jar:file and the JavaInfo failure. Compare the old and current dependency-import behavior for macro jars such as scalactic, scala-logging, shapeless, and scalatest; done means identifying and documenting a working import path.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.