Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SBT tries to use wrong Maven URL for POM file #4

Open
krakadzeyau-clarabridge opened this issue Apr 21, 2023 · 3 comments
Open

SBT tries to use wrong Maven URL for POM file #4

krakadzeyau-clarabridge opened this issue Apr 21, 2023 · 3 comments

Comments

@krakadzeyau-clarabridge
Copy link

krakadzeyau-clarabridge commented Apr 21, 2023

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 krakadzeyau-clarabridge changed the title SBT tries to use a wrong Maven URL SBT tries to use wrong Maven URL of POM file Apr 21, 2023
@krakadzeyau-clarabridge krakadzeyau-clarabridge changed the title SBT tries to use wrong Maven URL of POM file SBT tries to use wrong Maven URL for POM file Apr 21, 2023
@eed3si9n
Copy link
Owner

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

@krakadzeyau-clarabridge
Copy link
Author

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
Copy link
Author

krakadzeyau-clarabridge commented Apr 24, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants