From bee13ba7a4458482ce00a5c6bae4cd64328c4e5e Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Thu, 9 Feb 2017 02:29:44 +0000 Subject: memoize task results across classes within a single run --- test/test.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/test.scala') diff --git a/test/test.scala b/test/test.scala index ae6c301..332b61e 100644 --- a/test/test.scala +++ b/test/test.scala @@ -104,10 +104,11 @@ object Main{ val cache = cbtHome ++ "/cache" val mavenCache = cache ++ "/maven" val cbtHasChanged = true - def Resolver(urls: URL*) = MavenResolver(cbtHasChanged, mavenCache, urls: _*) + implicit val transientCache: java.util.Map[AnyRef,AnyRef] = new java.util.HashMap + def Resolver(urls: URL*) = MavenResolver(cbtLastModified, mavenCache, urls: _*) { - val noContext = ContextImplementation( + val noContext = new ContextImplementation( cbtHome ++ "/test/nothing", cbtHome, Array(), -- cgit v1.2.3