How to prevent SBT to include test dependencies into the POM
问题 I have a small utilities scala build with test classes under a dedicated test folder. Compiling and then publish-local creates the package in my local repository. As expected, the test folder is automatically excluded from the local jar of the utilities package. However, the resulting POM still contains the related dependencies as defined in the sbt. The SBT dependencies: libraryDependencies ++= Seq( "org.scalactic" %% "scalactic" % "3.0.0" % Test, "org.scalatest" %% "scalatest" % "3.0.0" %