相关疑难解决方法(0)

sbt是否针对scala 2.11构建?

我想用scala 2.11编写一个插件

sbtPlugin := true

scalaVersion := "2.11.0"
Run Code Online (Sandbox Code Playgroud)

当前的sbt版本(0.13.9)是基于scala 2.10.5建立的 https://github.com/sbt/sbt/blob/0.13.9/build.sbt#L27

编辑:社区构建中构建 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, …
Run Code Online (Sandbox Code Playgroud)

sbt

25
推荐指数
2
解决办法
1万
查看次数

当我使用sbt构建scala项目时,scala版本的关系是什么?

我正在使用SBT 1.x构建一个scala项目(在scala 2.11中编写).有一些"scala版本"让我感到困惑.

SBT 1.x    => scala 2.12   
SBT plugin => scala 2.x   
My project => scala 2.11   
Run Code Online (Sandbox Code Playgroud)

请帮我弄清楚它们之间的区别或关系.在编译或运行项目时SBT如何区分它们?

scala version sbt sbt-plugin

9
推荐指数
1
解决办法
2889
查看次数

scala sbt 版本的插件

我需要运行一个为 Scala 2.11 编译的 sbt 插件。但是,sbt 会尝试下载 Scala 2.12 的插件。我如何强制 sbt 使用 scala 2.11?

ps:添加scalaVersion := "2.11.11"build.sbt并不能解决问题,因为sbt插件不受此影响。

scala sbt

1
推荐指数
1
解决办法
863
查看次数

标签 统计

sbt ×3

scala ×2

sbt-plugin ×1

version ×1