Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SBT with Maven Central - get rid of Scala version in artifact url

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?

like image 793
mkorszun Avatar asked Apr 27 '15 13:04

mkorszun


1 Answers

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.

like image 125
Brian Topping Avatar answered Oct 31 '22 14:10

Brian Topping