sbt 是针对 scala 2.11 构建的吗? [英] Does sbt build against scala 2.11?

查看:36
本文介绍了sbt 是针对 scala 2.11 构建的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用 scala 2.11 写一个插件

I want to write a plugin using scala 2.11

sbtPlugin := true

scalaVersion := "2.11.0"

当前的 sbt 版本 (0.13.9) 构建于 Scala 2.10.5https://github.com/sbt/sbt/blob/0.13.9/build.sbt#L27

The current sbt release (0.13.9) is built on scala 2.10.5 https://github.com/sbt/sbt/blob/0.13.9/build.sbt#L27

社区构建中针对2.11构建.

Does build against 2.11 in the community build.

https://scala-ci.typesafe.com/job/scala-2.11.x-integrate-community-build/lastSuccessfulBuild/consoleFull
[sbt] --== Extracting dependencies for sbt ==--
[sbt] Fetching https://github.com/sbt/sbt.git
[sbt] into /home/jenkins/workspace/scala-2.11.x-integrate-community-build/target-0.9.1/clones/d12473907f59fe78661e5f2a758557fe14df3ac6
[sbt] Took: 00h 00m 02.3s
[sbt] Fetching /home/jenkins/workspace/scala-2.11.x-integrate-community-build/target-0.9.1/clones/d12473907f59fe78661e5f2a758557fe14df3ac6
[sbt] into /home/jenkins/workspace/scala-2.11.x-integrate-community-build/target-0.9.1/extraction/18f58ea36720e88c2e79edce7efe5b626fc09a5e/projects/c2c0436b24853ab78d6f35ecf52a77248da4e537
[sbt] Took: 00h 00m 01.3s
[sbt] The following subprojects will be built in project sbt: launcher-interface, test-agent, control, io, datatype-generator, process, scripted-framework, interface, launcher, precompiled-2_8_2, relation, classpath, api, precompiled-2_9_2, logging, compile, run, classfile, scripted-sbt, testing, incremental-compiler, persist, compiler-integration, precompiled-2_9_3, compiler-interface, collections, completion, logic, apply-macro, tasks, task-system, cache, tracking, cross, ivy, compiler-ivy-integration, actions, command, main-settings, main, sbt, scripted-plugin
[sbt] --== End Extracting dependencies for sbt ==--

推荐答案

sbt 现在使用 Scala 2.12

sbt 的当前版本是 1.2.8(2018 年 12 月 30 日发布),它从 1.0.0(2017 年 8 月 10 日发布)开始支持 Scala 2.12

The current version of sbt is 1.2.8 (released 30th December 2018) and it supports Scala 2.12 since 1.0.0 (released 10th August 2017)

sbt 1.0 使用 Scala 2.12 来构建定义和插件.这也需要 JDK 8.

sbt 1.0 uses Scala 2.12 for build definitions and plugins. This also requires JDK 8.

https://www.scala-sbt.org/1.x/docs/sbt-1.0-Release-Notes.html#sbt+1.0.0

我们只是跳过了 Scala 2.11,直接进入了 2.12.

We simply skipped Scala 2.11 and went directly to 2.12.

这篇关于sbt 是针对 scala 2.11 构建的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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