HomeDocs
DocsCommunityTestimonialsUsersGitHubTwitterBlogJobsTermsPrivacyCookies
TermsPrivacyCookies
Hey! These docs are for version 2.13, which is no longer officially supported. Click here for the latest version, 2.17!

scalac_plugin

A plugin for scalac.

Currently only thirdparty plugins are supported. To enable a plugin, define this target type, and set the artifact= field to the address of a jvm_artifact that provides the plugin.

If the scalac-loaded name of the plugin does not match the target's name, additionally set the plugin_name= field.

Backend: pants.backend.experimental.scala

artifact

type: str
required

The address of a jvm_artifact that defines a plugin for scalac.

description

type: str | None
default: None

A human-readable description of the target.

Use ./pants list --documented :: to see all targets with descriptions.

plugin_name

type: str | None
default: None

The name that scalac should use to load the plugin.

If not set, the plugin name defaults to the target name.

tags

type: Iterable[str] | None
default: None

Arbitrary strings to describe a target.

For example, you may tag some test targets with 'integration_test' so that you could run ./pants --tag='integration_test' test :: to only run on targets with that tag.