How can I specify the Scala version in a Gradle Scala project?
The official documentation states that the scala-library
dependency is used to get hold of the compiler.
dependencies {
compile 'org.scala-lang:scala-library:2.11.1'
}
Does this mean that Scala 2.11.1 will be used?
Specify the Scala library in the dependencies like so:
dependencies {
compile 'org.scala-lang:scala-library:2.11.1'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With