mirror of https://github.com/sbt/sbt.git
Make sure addSbtModule will work in sbt 1
For some reason using ClasspathDependency doesn't work in sbt 1, while ClasspathDep[ProjectReference] does. The latter is less specific and works just as well.
This commit is contained in:
parent
6cd3cd2323
commit
33f79a9fcd
|
|
@ -64,7 +64,7 @@ object Dependencies {
|
|||
c: Option[Configuration] = None) =
|
||||
path match {
|
||||
case Some(f) =>
|
||||
p dependsOn c.fold[ClasspathDependency](ProjectRef(file(f), projectName))(
|
||||
p dependsOn c.fold[ClasspathDep[ProjectReference]](ProjectRef(file(f), projectName))(
|
||||
ProjectRef(file(f), projectName) % _)
|
||||
case None => p settings (libraryDependencies += c.fold(m)(m % _))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue