gpt4 book ai didi

sbt - sbt 是针对 scala 2.11 构建的吗?

转载 作者:行者123 更新时间:2023-12-03 10:43:07 24 4
gpt4 key购买 nike

我想用scala 2.11写一个插件

sbtPlugin := true

scalaVersion := "2.11.0"

当前的 sbt 版本 (0.13.9) 建立在 Scala 2.10.5 之上
https://github.com/sbt/sbt/blob/0.13.9/build.sbt#L27

编辑:
是否针对 community build 中的 2.11 构建.
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 0.14 或潜在的 sbt 1.0 之前,我们不能破坏所有 sbt 0.13 插件的二进制兼容性,所以在那之前没有 Scala 2.11.x sbt。

更新 :

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

关于sbt - sbt 是针对 scala 2.11 构建的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23282469/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com