Fix test prep step

This commit is contained in:
Eugene Yokota 2022-08-13 20:46:47 -04:00
parent d1a5206484
commit 25ea593d42
1 changed files with 11 additions and 11 deletions

View File

@ -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