From 06d69b3027cef5d800bcaff8374c5c215f98cd10 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Mon, 27 Mar 2017 19:16:47 -0400 Subject: prevent classClassLoaders for builds, currently not supported currently leads to "you need to extend an appropriate Build class" exception, because BuildBuild has a different BaseBuild class than builds with a flat classloader --- stage2/BuildBuild.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stage2/BuildBuild.scala') diff --git a/stage2/BuildBuild.scala b/stage2/BuildBuild.scala index 8430f49..299ec21 100644 --- a/stage2/BuildBuild.scala +++ b/stage2/BuildBuild.scala @@ -9,6 +9,9 @@ trait BuildBuild extends BaseBuild{ object plugins extends plugins( context, scalaVersion ) + /** CBT relies on hierarchical classloaders */ + final override def flatClassLoader = false + assert( projectDirectory.getName === lib.buildDirectoryName, s"You can't extend ${lib.buildBuildClassName} in: " + projectDirectory + "/" + lib.buildDirectoryName -- cgit v1.2.3