Skip to content

Latest commit

 

History

History
45 lines (24 loc) · 2.24 KB

rules_scala.md

File metadata and controls

45 lines (24 loc) · 2.24 KB

emulate_rules_scala

load("@//rules:rules_scala.bzl", "emulate_rules_scala")

emulate_rules_scala(scalatest, extra_deps)

PARAMETERS

Name Description Default Value
scalatest

-

none
extra_deps

-

[]

emulate_rules_scala_repository

load("@//rules:rules_scala.bzl", "emulate_rules_scala_repository")

emulate_rules_scala_repository(name, extra_deps, repo_mapping)

ATTRIBUTES

Name Description Type Mandatory Default
name A unique name for this repository. Name required
extra_deps - List of labels optional []
repo_mapping In WORKSPACE context only: a dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.

For example, an entry "@foo": "@bar" declares that, for any time this repository depends on @foo (such as a dependency on @foo//some:target, it should actually resolve that dependency within globally-declared @bar (@bar//some:target).

This attribute is not supported in MODULE.bazel context (when invoking a repository rule inside a module extension's implementation function).
Dictionary: String -> String optional