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:
Dale Wijnand 2017-05-08 14:07:37 +01:00
parent 6cd3cd2323
commit 33f79a9fcd
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 1 additions and 1 deletions

View File

@ -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 % _))
}