Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle Scala plugin - How to specify scala version

Tags:

gradle

scala

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?

like image 328
Midiparse Avatar asked Oct 18 '22 11:10

Midiparse


1 Answers

Specify the Scala library in the dependencies like so:

dependencies {
    compile 'org.scala-lang:scala-library:2.11.1'
}
like image 60
Midiparse Avatar answered Oct 21 '22 00:10

Midiparse