Skip to content

Commit

Permalink
Fix this classloader layering stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbrown committed Jun 12, 2019
1 parent 12d4010 commit 25e0b2a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build.sbt
Expand Up @@ -307,7 +307,8 @@ lazy val genericBase = circeCrossModule("generic", mima = previousCirceVersion)
case Some((2, minor)) if minor >= 13 => extraDirs("-2.13+")
case _ => Nil
}
}
},
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat
)
.jsConfigure(_.settings(libraryDependencies += "org.typelevel" %% "jawn-parser" % jawnVersion % Test))
.dependsOn(coreBase, testsBase % Test, literalBase % Test)
Expand Down Expand Up @@ -339,7 +340,8 @@ lazy val genericExtrasJS = genericExtrasBase.js
lazy val shapesBase = circeCrossModule("shapes", mima = previousCirceVersion, CrossType.Pure)
.settings(macroSettings)
.settings(
libraryDependencies += "com.chuusai" %%% "shapeless" % shapelessVersion
libraryDependencies += "com.chuusai" %%% "shapeless" % shapelessVersion,
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat
)
.jsConfigure(_.settings(libraryDependencies += "org.typelevel" %% "jawn-parser" % jawnVersion % Test))
.dependsOn(coreBase, testsBase % Test, literalBase % Test)
Expand Down Expand Up @@ -368,7 +370,8 @@ lazy val refinedBase = circeCrossModule("refined", mima = previousCirceVersion)
libraryDependencies ++= Seq(
"eu.timepit" %%% "refined" % refinedVersion,
"eu.timepit" %%% "refined-scalacheck" % refinedVersion % Test
)
),
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat
)
.dependsOn(coreBase, testsBase % Test)

Expand All @@ -387,7 +390,8 @@ lazy val scalajs = circeModule("scalajs", mima = None).enablePlugins(ScalaJSPlug

lazy val scodecBase = circeCrossModule("scodec", mima = previousCirceVersion)
.settings(
libraryDependencies += "org.scodec" %%% "scodec-bits" % "1.1.12"
libraryDependencies += "org.scodec" %%% "scodec-bits" % "1.1.12",
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat
)
.dependsOn(coreBase, testsBase % Test)

Expand Down

0 comments on commit 25e0b2a

Please sign in to comment.