根据sbt wiki的一个例子,我尝试了一个projects/projects/Build.scala包含:
import sbt._
object PluginDef extends Build {
override lazy val projects = Seq(root)
lazy val root = Project("plugins", file(".")) dependsOn( eclipsePlugin )
lazy val eclipsePlugin = uri("git://github.com/typesafehub/sbteclipse.git")
}
Run Code Online (Sandbox Code Playgroud)
但是,正如预期的那样失败,因为git端口在工作时被阻止.
和:
import sbt._
object PluginDef extends Build {
override lazy val projects = Seq(root)
lazy val root = Project("plugins", file(".")) dependsOn( eclipsePlugin )
lazy val eclipsePlugin = uri("https://github.com/typesafehub/sbteclipse.git")
}
Run Code Online (Sandbox Code Playgroud)
但这给了一个FileNotFoundException(我猜它不被认为是一个git URL).
| 归档时间: |
|
| 查看次数: |
1418 次 |
| 最近记录: |