diff options
-rw-r--r-- | stage1/resolver.scala | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/stage1/resolver.scala b/stage1/resolver.scala index 1eaeebd..e485823 100644 --- a/stage1/resolver.scala +++ b/stage1/resolver.scala @@ -119,11 +119,13 @@ trait DependencyImplementation extends Dependency{ // FIXME: these probably need to update outdated as well def classpath : ClassPath = exportedClasspath ++ dependencyClasspath - def dependencyClasspath : ClassPath = ClassPath( - transitiveDependencies - .flatMap(_.exportedClasspath.files) - .distinct // <- currently needed here to handle diamond dependencies on builds (duplicate in classpath) - ) + def dependencyClasspath : ClassPath = taskCache[DependencyImplementation]( "dependencyClasspath" ).memoize{ + ClassPath( + transitiveDependencies + .flatMap(_.exportedClasspath.files) + .distinct // <- currently needed here to handle diamond dependencies on builds (duplicate in classpath) + ) + } def dependencies: Seq[Dependency] /** return dependencies in order of linearized dependence. this is a bit tricky. */ |