Scala 工厂构建工具,如何使用“逐出”`
我想在我的磨坊项目中运行Scala 工厂构建工具,如何使用“逐出”`,scala,sbt,mill,Scala,Sbt,Mill,我想在我的磨坊项目中运行executed 使用SBT,可在SBT控制台中使用: sbt>被逐出 这将返回版本冲突警告列表: [warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible: [warn] * com.typesafe:ssl-config-core_2.13:0.3.8 is selected over 0.4.0 [warn]
executed
使用SBT,可在SBT控制台
中使用:
sbt>被逐出
这将返回版本冲突警告列表:
[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn] * com.typesafe:ssl-config-core_2.13:0.3.8 is selected over 0.4.0
[warn] +- com.typesafe.play:play-ws-standalone_2.13:2.0.6 (depends on 0.3.8)
[warn] +- com.typesafe.play:play_2.13:2.7.3 () (depends on 0.3.8)
[warn] +- com.typesafe.akka:akka-stream_2.13:2.5.23 () (depends on 0.4.0)
....
磨坊是怎么做到的
我尝试了
mill控制台
,没有命令(mill resolve
),谷歌也帮不上忙。我假设,您正在寻找可能的类路径问题/警告,它们是由传递依赖项拉入的相同依赖项的不同版本造成的
在mill中,您可以使用IvydepTree
目标来显示包含所有可传递的ivy依赖项的树。此树还包括有关版本调整的详细信息。这些行将以不同的颜色打印。默认情况下,橙色表示微/补丁版本更改,红色表示小版本更改
让我们看一下随机Java项目的以下摘录:
$ mill __.ivyDepsTree
...
[416/426] <redacted>.test.ivyDepsTree
├─ com.lihaoyi:mill-contrib-testng:0.5.1-14-ef3708
│ ├─ org.scala-sbt:test-interface:1.0
│ └─ org.testng:testng:6.11 -> 6.14.2 (possible incompatibility)
│ ├─ com.beust:jcommander:1.72
│ └─ org.apache-extras.beanshell:bsh:2.0b6
├─ org.testng:testng:6.14.2
│ ├─ com.beust:jcommander:1.72
│ └─ org.apache-extras.beanshell:bsh:2.0b6
├─ de.tototec:de.tobiasroeser.lambdatest:0.7.0
├─ org.slf4j:slf4j-api:1.7.25
├─ ch.qos.logback:logback-classic:1.2.3
│ ├─ ch.qos.logback:logback-core:1.2.3
│ └─ org.slf4j:slf4j-api:1.7.25
├─ org.aspectj:aspectjrt:1.8.13
├─ org.fedorahosted.tennera:jgettext:0.15
│ ├─ antlr:antlr:2.7.7
│ └─ org.slf4j:slf4j-api:1.7.5 -> 1.7.25
├─ org.antlr:com.springsource.antlr:2.7.7
...
我认为是
mill resolve\uu
为您提供了一个命令列表(双下划线)。如果它没有列出被逐出的(或类似的东西),那么我猜它不受支持executed
命令会带来什么?您想要实现什么?@TobiasRoeser我添加了sbt为收回提供的结果。要运行控制台,您需要在具体的scala模块上运行控制台:mill-I myModule.console
。另请参见mill inspect myModule.console
的输出。
$ mill __.ivyDepsTree | grep "incompatibility"
...
[416/426] <redacted>.test.ivyDepsTree
│ └─ org.testng:testng:6.11 -> 6.14.2 (possible incompatibility)
│ ├─ org.hibernate:com.springsource.org.hibernate:3.2.6.ga -> 3.3.2.GA (possible incompatibility)
│ ├─ org.jboss.javassist:com.springsource.javassist:3.3.0.ga -> 3.9.0.GA (possible incompatibility)
│ └─ org.objenesis:objenesis:1.2 -> 2.6 (possible incompatibility)
│ │ └─ org.objenesis:objenesis:1.2 -> 2.6 (possible incompatibility)
│ │ │ └─ org.objenesis:objenesis:1.2 -> 2.6 (possible incompatibility)
│ │ │ └─ org.objenesis:objenesis:1.2 -> 2.6 (possible incompatibility)
│ │ └─ org.testng:testng:6.4 -> 6.14.2 (possible incompatibility)
│ └─ org.testng:testng:6.4 -> 6.14.2 (possible incompatibility)
│ │ └─ org.objenesis:objenesis:1.2 -> 2.6 (possible incompatibility)
│ └─ org.objenesis:objenesis:1.2 -> 2.6 (possible incompatibility)