Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Latest commit

 

History

History
528 lines (434 loc) · 12.4 KB

providers.md

File metadata and controls

528 lines (434 loc) · 12.4 KB

declare_scala_configuration

declare_scala_configuration(name, compiler_classpath, global_plugins, global_scalacopts, runtime_classpath, version)

Creates a ScalaConfiguration.

Attributes

name Name; required

A unique name for this target.

compiler_classpath List of labels; required
global_plugins List of labels; optional

Scalac plugins that will always be enabled.

global_scalacopts List of strings; optional

Scalac options that will always be enabled.

runtime_classpath List of labels; required
version String; required

declare_zinc_configuration

declare_zinc_configuration(name, compiler_bridge)

Creates a ZincConfiguration.

Attributes

name Name; required

A unique name for this target.

compiler_bridge Label; required

join_configurations

join_configurations(name, configurations)

Attributes

name Name; required

A unique name for this target.

configurations List of labels; required

reconfigure_deps_configuration

reconfigure_deps_configuration(name, direct, provider, used)

Attributes

name Name; required

A unique name for this target.

direct String; optional
provider Label; required
used String; optional

CodeCoverageConfiguration

CodeCoverageConfiguration(instrumentation_worker)

Code coverage related configuration

Fields

instrumentation_worker

the worker used for instrumenting jars

DepsConfiguration

DepsConfiguration(direct, used, worker)

Dependency checking configuration.

Fields

direct

either error or off

used

either error or off

worker

the worker label for checking used/unused deps

IntellijInfo

IntellijInfo(outputs, transitive_exports)

Provider for IntelliJ.

Fields

outputs

java_output_jars

transitive_exports

labels of transitive dependencies

LabeledJars

LabeledJars(values)

Exported jars and their labels.

Fields

values

The preorder depset of label and jars.

ScalaConfiguration

ScalaConfiguration(version, compiler_classpath, runtime_classpath, global_plugins, global_scalacopts)

Scala compile-time and runtime configuration

Fields

version

The Scala full version.

compiler_classpath

The compiler classpath.

runtime_classpath

The runtime classpath.

global_plugins

Globally enabled compiler plugins

global_scalacopts

Globally enabled compiler options

ScalaInfo

ScalaInfo(macro, scala_configuration)

Scala library.

Fields

macro

whether the jar contains macros

scala_configuration

ScalaConfiguration associated with this output

ScalaRulePhase

ScalaRulePhase(phases)

A Scala compiler plugin

Fields

phases

the phases to add

ZincConfiguration

ZincConfiguration(compiler_bridge, compile_worker, log_level)

Zinc configuration.

Fields

compiler_bridge

compiled Zinc compiler bridge

compile_worker

the worker label for compilation with Zinc

log_level

log level for the Zinc compiler

ZincInfo

ZincInfo(apis, deps, deps_files, label, relations)

Zinc-specific outputs.

Fields

apis

The API file.

deps

The depset of library dependency outputs.

deps_files

The depset of all Zinc files.

label

The label for this output.

relations

The relations file.