Gradle Scala plugin - How to specify scala version

自古美人都是妖i 提交于 2021-01-23 04:59:04

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!