Skip to content

Commit

Permalink
Also publish test sources if SBT_PUBLISH_TESTS_JARS is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schultz committed Mar 20, 2020
1 parent ae96f7e commit 59288bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 59288bb

Please sign in to comment.