Gradle Scala插件-如何指定Scala版本 [英] Gradle Scala plugin - How to specify scala version

查看:77
本文介绍了Gradle Scala插件-如何指定Scala版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Gradle Scala项目中指定Scala版本?

How can I specify the Scala version in a Gradle Scala project?

官方文档指出 scala库依赖项可用来获取编译器.

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'
}

这是否意味着将使用Scala 2.11.1?

Does this mean that Scala 2.11.1 will be used?

推荐答案

在依赖项中指定Scala库,如下所示:

Specify the Scala library in the dependencies like so:

dependencies {
    compile 'org.scala-lang:scala-library:2.11.1'
}

这篇关于Gradle Scala插件-如何指定Scala版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆