加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

sbt建立对scala 2.11?

发布时间:2020-12-16 09:43:47 所属栏目:安全 来源:网络整理
导读:我想用scala 2.11编写一个插件 sbtPlugin := truescalaVersion := "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/jo
我想用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.13插件的二进制兼容性,直到我们发布下一个版本sbt 0.14或潜在的sbt 1.0,所以没有Scala 2.11.x sbt直到那时。

更新:

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读