8

I am trying to use in my Scala project Java library which is on Maven Central. While resolving this dependency, SBT appends Scala version to the repository url which obviously does not exist in such a format. Can I somehow disable appending Scala version for this specific artifact?

1 Answer 1

21

Yes, use % instead of %% before the artifact specifier for your dependency. The %% notation indicates that the library is dependent on the Scala runtime version, yours is not.

2
  • It's before the artifact specifier, not the version specifier. Apr 27, 2015 at 19:24
  • Thanks, but I still could not find it unresolved dependency: com.yahoo.util#myProject;0.16.0-SNAPSHOT: not found , what's missing? and what is ; doing?
    – daydreamer
    Jun 28, 2015 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.