gpt4 book ai didi

scala - Sbt-assembly Unresolved 依赖项,Scala

转载 作者:行者123 更新时间:2023-12-03 22:16:31 40 4
gpt4 key购买 nike

我正在安装 Sbt-Assembly,但现在卡住了。

Sbt Version (from 'sbt about'): 0.13.8
Current project is built against scala 2.11.6
Sbt, sbt plugins, and build definitions are using Scala 2.10.4

项目/程序集.sbt
   addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.0")
resolvers += Resolver.url("bintray-sbt-plugins", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

生成.sbt
   scalaVersion in ThisBuild := "2.11.6"

~/.sbt/0.13/global.sbt
   scalaVersion := "2.11.6"

我意识到 sbt-assembly 适用于 Scala 2.10。如果我将我的项目更改为 Scala 2.10,我将有新的不可用的 2.10 依赖项,这是不可取的。有没有办法将我的项目配置为仅将 2.10 用于程序集插件?
  ==== bintray-sbt-plugins: tried
http://dl.bintray.com/sbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.11/sbt_0.13/0.14.0/ivys/ivy.xml

::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: com.eed3si9n#sbt-assembly;0.14.0: not found
::::::::::::::::::::::::::::::::::::::::::::::

Note: Some unresolved dependencies have extra attributes.
Check that these dependencies exist with the requested attributes.

com.eed3si9n:sbt-assembly:0.14.0 (scalaVersion=2.11, sbtVersion=0.13)

最佳答案

只需删除 scalaVersion来自 global.sbt .

因为 SBT is recursive它使用这个 scalaVersion来自 global.sbt在构建构建文件时失败,因为 SBT 0.13 是使用 Scala 2.10 构建的,所有 SBT 插件也是如此。

关于scala - Sbt-assembly Unresolved 依赖项,Scala,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32720365/

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