From 8765710a88c0c785956e5b5c353a06750a5f4016 Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Tue, 28 May 2019 11:45:08 -0700 Subject: [PATCH] Set mainProj/Test/classLoaderLayeringStrategy The TestDependencies strategy doesn't work as of 1.3.0-RC1 because some of the tests need to access resources. The ScalaLibrary strategy is broken in 1.3.0-RC1. That leaves Flat. I tested that with 1.3.0-SNAPSHOT off the latest master, that the AllLibraryJars strategy works fine, but I need this change now to get travis to work. --- build.sbt | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sbt b/build.sbt index 818210006..9507d71ac 100644 --- a/build.sbt +++ b/build.sbt @@ -656,6 +656,7 @@ lazy val mainProj = (project in file("main")) sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-scala", testOptions in Test += Tests .Argument(TestFrameworks.ScalaCheck, "-minSuccessfulTests", "1000"), + Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat, // Delete this after 1.3.0-RC2. mimaSettings, mimaBinaryIssueFilters ++= Vector( // New and changed methods on KeyIndex. internal.