From 25ea593d4254d30486fb49a0708d03a9c8e14704 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Sat, 13 Aug 2022 20:46:47 -0400 Subject: [PATCH] Fix test prep step --- build.sbt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/build.sbt b/build.sbt index afea3ec86..af3e59c58 100644 --- a/build.sbt +++ b/build.sbt @@ -26,6 +26,8 @@ def lmIvy = Def.setting { } } +lazy val preTest = taskKey[Unit]("prep steps before tests") + lazy val definitions = project .in(file("modules/definitions")) .disablePlugins(MimaPlugin) @@ -58,18 +60,16 @@ lazy val `lm-coursier` = project lmIvy.value, "org.scalatest" %% "scalatest" % "3.2.13" % Test ), - Test / test := { - (publishLocal in customProtocolForTest212).value - (publishLocal in customProtocolForTest213).value - (publishLocal in customProtocolJavaForTest).value - (Test / test).value + Test / exportedProducts := { + (Test / preTest).value + (Test / exportedProducts).value }, - Test / testOnly := { - (publishLocal in customProtocolForTest212).value - (publishLocal in customProtocolForTest213).value - (publishLocal in customProtocolJavaForTest).value - (Test / testOnly).evaluated - } + Test / preTest := { + (customProtocolForTest212 / publishLocal).value + (customProtocolForTest213 / publishLocal).value + (customProtocolJavaForTest / publishLocal).value + }, + Compile / sourceGenerators += dataclassGen(definitions).taskValue, ) lazy val `lm-coursier-shaded` = project