Skip to content

Commit

Permalink
Moved testng dependency to compile-only to force the user to provide …
Browse files Browse the repository at this point in the history
…it (#2168)

Pull request: #2168
  • Loading branch information
lefou authored Dec 6, 2022
1 parent 3e3f5d3 commit 080038a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,9 @@ object contrib extends MillModule {
// pure Java implementation
override def artifactSuffix: T[String] = ""
override def scalaLibraryIvyDeps: Target[Agg[Dep]] = T { Agg.empty[Dep] }
override def ivyDeps = Agg(
Deps.sbtTestInterface,
Deps.testng
)
override def ivyDeps = Agg(Deps.sbtTestInterface)
override def compileIvyDeps = Agg(Deps.testng)
override def runIvyDeps = Agg(Deps.testng)
override def testArgs = T {
Seq(
"-DMILL_SCALA_LIB=" + scalalib.runClasspath().map(_.path).mkString(","),
Expand Down
2 changes: 1 addition & 1 deletion scalalib/src/TestModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ object TestModule {

/**
* TestModule using TestNG Framework to run tests.
* You may want to provide the testng dependency explicitly to use another version.
* You need to provide the testng dependency yourself.
*/
trait TestNg extends TestModule {
override def testFramework: T[String] = "mill.testng.TestNGFramework"
Expand Down

0 comments on commit 080038a

Please sign in to comment.