most-jordan-40579
12/20/2022, 4:47 PM[scala.version_for_resolve]
jvm-default = "3.2.1"
When I run ./pants check ::
it errors with:
17:18:37.48 [ERROR] 1 Exception encountered:
MissingRequiredJvmArtifactsInResolve: The JVM resolve `jvm-default` is missing one or more requirements for the Scala runtime library. Since at least one JVM target type in this repository consumes a `scala_sources` target in this resolve, this resolve must contain `jvm_artifact` targets for each requirement of the Scala runtime library.
Please add the following `jvm_artifact` target(s) somewhere in the repository and re-run `./pants generate-lockfiles --resolve=jvm-default`:
jvm_artifact(
name="org.scala-lang_scala-library",
group="org.scala-lang",
artifact="scala-library",
version="3.2.1",
resolve="jvm-default",
)
Which is expect from what I've seen in the docs.
I created a BUILD
file in the root with this config.
jvm_artifact(
name="org.scala-lang_scala-library",
group="org.scala-lang",
artifact="scala-library",
version="3.2.1",
resolve="jvm-default",
)
The problem is that this artifact doesn't exist, the scala-library for scala 3 is named scala3-library. If I try to change the artifact name to the correct one it errors with the same message as above.fast-nail-55400
12/20/2022, 5:15 PMfast-nail-55400
12/20/2022, 5:17 PMorg.scala-lang:scala3-library_3
with a _3
appendedfast-nail-55400
12/20/2022, 5:20 PMmost-jordan-40579
12/20/2022, 5:28 PMfast-nail-55400
12/20/2022, 5:38 PMfast-nail-55400
12/20/2022, 5:38 PMfast-nail-55400
12/20/2022, 6:04 PM