eval icon indicating copy to clipboard operation
eval copied to clipboard

SBT tries to use wrong Maven URL for POM file

Open krakadzeyau-clarabridge opened this issue 2 years ago • 3 comments

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.

krakadzeyau-clarabridge avatar Apr 21 '23 19:04 krakadzeyau-clarabridge

Try val eval = "com.eed3si9n.eval" % "eval_3.2.0" % "0.2.0" or ("com.eed3si9n.eval" % "eval" % "0.2.0").cross(CrossVersion.full)

eed3si9n avatar Apr 22 '23 02:04 eed3si9n

This works, thank you:

libraryDependencies += "com.eed3si9n.eval" % "eval_3.2.0" % "0.2.0"

Could you please add this to the README.md?

krakadzeyau-clarabridge avatar Apr 24 '23 10:04 krakadzeyau-clarabridge

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?

krakadzeyau-clarabridge avatar Apr 24 '23 11:04 krakadzeyau-clarabridge