首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >sbt是针对Scala2.11构建的吗?

sbt是针对Scala2.11构建的吗?
EN

Stack Overflow用户
提问于 2014-04-25 01:02:38
回答 2查看 14.7K关注 0票数 28

我想用Scala2.11编写一个插件

代码语言:javascript
复制
sbtPlugin := true

scalaVersion := "2.11.0"

当前的sbt版本(0.13.9)构建在Scala2.10.5 https://github.com/sbt/sbt/blob/0.13.9/build.sbt#L27上。

编辑:确实是针对community build中的2.11构建的。

代码语言:javascript
复制
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 ==--
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-08-08 16:31:18

sbt现在使用Scala2.12

目前的sbt版本为1.2.8 (2018年12月30日发布),自1.0.0以来支持Scala2.12(2017年8月10日发布)

SBT1.0使用Scala2.12进行构建定义和插件。这也需要JDK 8。

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

我们只需跳过Scala2.11并直接进入2.12。

票数 1
EN

Stack Overflow用户

发布于 2014-04-25 02:41:41

在发布下一个版本SBT0.14或潜在的SBT1.0之前,我们不能破坏所有SBT0.13插件的二进制兼容性,因此Scala2.11.xSBT在此之前不会出现。

更新

解决这一问题的一种方法是使用Fork API。SBT0.13能够使用Scala2.11编译器构建Scala2.11源代码。您可以模仿它的完成方式,并从sbt运行Scala2.10或2.11代码。

票数 17
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23282469

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档