eval
eval copied to clipboard
SBT tries to use wrong Maven URL for POM file
I use Scala 3.2.2.
The right POM file URL is https://repo1.maven.org/maven2/com/eed3si9n/eval/eval_3.2.0/0.2.0/eval_3.2.0-0.2.0.pom.
But when I try to use
libraryDependencies += "com.eed3si9n.eval" %% "eval" % "0.2.0"
then SBT is trying to find the POM at https://repo1.maven.org/maven2/com/eed3si9n/eval/eval_3/0.2.0/eval_3-0.2.0.pom:
[error] not found: https://repo1.maven.org/maven2/com/eed3si9n/eval/eval_3/0.2.0/eval_3-0.2.0.pom
[error] (ssExtractDependencies) sbt.librarymanagement.ResolveException: Error downloading com.eed3si9n.eval:eval_3:0.2.0
i.e. SBT adds "_3" to one of the interim folders and inserts it into the POM file name.
Note: Gradle does not have such an issue.
Try val eval = "com.eed3si9n.eval" % "eval_3.2.0" % "0.2.0" or ("com.eed3si9n.eval" % "eval" % "0.2.0").cross(CrossVersion.full)
This works, thank you:
libraryDependencies += "com.eed3si9n.eval" % "eval_3.2.0" % "0.2.0"
Could you please add this to the README.md?
I also have a question. Do you have any plans to add bindings support so that it is possible to pass values in addition to the simple code evaluation?