2
我想下面的设置为什么SBT给我一个类型不匹配的错误?
unmanagedClasspath += file("/home/...")
而且正在以下错误
error: type mismatch;
found : sbt.package.File
required: sbt.Attributed[java.io.File]
什么是sbt.Attributed语法?
我想下面的设置为什么SBT给我一个类型不匹配的错误?
unmanagedClasspath += file("/home/...")
而且正在以下错误
error: type mismatch;
found : sbt.package.File
required: sbt.Attributed[java.io.File]
什么是sbt.Attributed语法?
您可以使用Attributed.blank(...)
将文件包装在属性实例中。您还应提供上下文(例如Runtime
):
unmanagedClasspath in Runtime += Attributed.blank(file("/home/..."))