scala-parser
Internal tool for parsing Scala sources to identify dependencies
Backend: pants.backend.experimental.scala
Config section: [scala-parser]
Basic options
None
Advanced options
artifacts
--scala-parser-artifacts="['<str>', '<str>', ...]"
PANTS_SCALA_PARSER_ARTIFACTS
[scala-parser]
artifacts = [
'<str>',
'<str>',
...,
]
[ "org.scalameta:scalameta_2.13:4.8.7", "io.circe:circe-generic_2.13:0.14.1", "org.scala-lang:scala-library:2.13.8" ]
Artifact requirements for this tool using specified as either the address of a jvm_artifact
target or, alternatively, as a colon-separated Maven coordinates (e.g., group:name:version
). For Maven coordinates, the string {version}
version will be substituted with the value of the [scala-parser].version
option.
jvm_options
--scala-parser-jvm-options="['<str>', '<str>', ...]"
PANTS_SCALA_PARSER_JVM_OPTIONS
[scala-parser]
jvm_options = [
'<str>',
'<str>',
...,
]
[]
List of JVM options to pass to scala-parser
JVM processes.
Options set here will be added to those set in [jvm].global_options
. Please check the documentation for the jvm
subsystem to see what values are accepted here.
lockfile
--scala-parser-lockfile=<str>
PANTS_SCALA_PARSER_LOCKFILE
[scala-parser]
lockfile = <str>
<default>
Path to a lockfile used for installing the tool.
Set to the string <default>
to use a lockfile provided by Pants, so long as you have not changed the --version
option. See https://github.com/pantsbuild/pants/blob/release_2.24.0rc0/src/python/pants/backend/scala/dependency_inference/scala_parser.lock for the default lockfile contents.
To use a custom lockfile, set this option to a file path relative to the build root, then run pants generate-lockfiles --resolve=scala-parser
.
version
--scala-parser-version=<str>
PANTS_SCALA_PARSER_VERSION
[scala-parser]
version = <str>
None
Version string for the tool. This is available for substitution in the [scala-parser].artifacts
option by including the string {version}
.
Deprecated options
None
Related subsystems
None