2014-04-25 23 views
25

我想用Scala的2.11是否針對scala 2.11構建?

sbtPlugin := true 

scalaVersion := "2.11.0" 

目前SBT版本(0.13.9)編寫一個插件是建立在斯卡拉2.10.5 https://github.com/sbt/sbt/blob/0.13.9/build.sbt#L27

編輯: 是否築起2.11 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 ==-- 

回答

14

,我們不能違背二進制兼容所有的SBT 0.13插件,直到我們發佈下一個版本SBT 0.14或潛在SBT 1.0,所以沒有斯卡拉2.11.x SBT到那時。

更新

一種方式來解決,這是使用Fork API。 sbt 0.13能夠使用Scala 2.11編譯器構建Scala 2.11源代碼。你可以模仿它完成的方式,並從sbt運行Scala 2.10或2.11代碼。

+0

是否有支持2.11.x的sbt 0.14.x的快照?我看到了https://github.com/sbt/sbt/tree/sbt-0.13.1-scala-2.11.0-M8 –

+0

Grzegorz是一個編譯器人員,所以也許他正在測試兼容性或增量編譯器。我們已經有0.13.2和0.13.5個里程碑。一旦0.13.5出現,未來可能會有一些里程碑。 –

+1

我們每天晚上都在這裏建立對斯卡拉大師(每晚2.11版)的攻擊:https://jenkins-dbuild.typesafe.com:8499/job/Community-2.11.x/120/console 但是,這些版本不會發布。我們運行它們只是爲了檢測編譯器是否已經退化。這表明你可以用Scala 2.11構建這個sbt。 –