sbt Dependencies Pin Library to Specific Version of Scala

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

A library can be 'pinned' to a specific version of Scala using the % operator between the groupId and the artifactId (the first two strings in a library dependency). In this example, we pin the library with the artifactId of slick to Scala version 2.10:

 libraryDependencies += "com.typesafe.slick" % "slick_2.10" % "3.2.0-M1"


Got any sbt Question?