Hey Folks, I'm trying to setup a scala 3 project ...
# general
m
Hey Folks, I'm trying to setup a scala 3 project using pants. I've added the config to set the global scala version:
Copy code
[scala.version_for_resolve]
jvm-default = "3.2.1"
When I run
./pants check ::
it errors with:
Copy code
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.
Copy code
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.
looks like the coordinate is
org.scala-lang:scala3-library_3
with a
_3
appended
m
Great! Thanks @fast-nail-55400
f
I should have this fixed tonight.
at least for the change in compiler and library jar coordinates