问题
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?
回答1:
Specify the Scala library in the dependencies like so:
dependencies {
compile 'org.scala-lang:scala-library:2.11.1'
}
来源:https://stackoverflow.com/questions/44374472/gradle-scala-plugin-how-to-specify-scala-version