简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM