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/..."))