From 59288bb7107b3448fc262542cde12b89d1d9e4da Mon Sep 17 00:00:00 2001 From: Andreas Schultz Date: Fri, 20 Mar 2020 15:17:35 +0100 Subject: [PATCH] Also publish test sources if SBT_PUBLISH_TESTS_JARS is set to true --- build.sbt | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sbt b/build.sbt index 80c9cba848..bbe6598b3d 100644 --- a/build.sbt +++ b/build.sbt @@ -24,6 +24,7 @@ lazy val commonSettings = Seq( }, // If SBT_PUBLISH_TESTS_JARS ENV variable is set to "true" then tests jar files will be published that can be used e.g. in testing plugins publishArtifact in (Test, packageBin) := sys.env.getOrElse("SBT_PUBLISH_TESTS_JARS", "false").toLowerCase == "true", + publishArtifact in (Test, packageSrc) := sys.env.getOrElse("SBT_PUBLISH_TESTS_JARS", "false").toLowerCase == "true", // Testing libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.7" % "test", libraryDependencies += "net.codingwell" %% "scala-guice" % "4.0.0" % "test",