Skip to content

Commit

Permalink
fix cross sbt module tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rockjam committed Apr 15, 2018
1 parent a145abc commit 7fcf8c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration/test/resources/play-json/build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ object release extends Module {

implicit val wd = pwd

val versionFile = wd / "version.sc"
val versionFile = wd / "playJsonVersion.sc"

private val ReleaseVersion = raw"""(\d+)\.(\d+)\.(\d+)""".r
private val MinorSnapshotVersion = raw"""(\d+)\.(\d+)\.(\d+)-SNAPSHOT""".r
Expand Down
4 changes: 2 additions & 2 deletions scalalib/src/mill/scalalib/MiscModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ trait CrossSbtModule extends SbtModule with CrossModuleBase{ outer =>

}
trait Tests extends super.Tests {
override def millSourcePath = outer.millSourcePath
override def millSourcePath = outer.millSourcePath / 'src / 'test
override def sources = T.sources{
super.sources() ++
CrossModuleBase.scalaVersionPaths(
crossScalaVersion,
s => millSourcePath / 'src / 'test / s"scala-$s"
s => millSourcePath / s"scala-$s"
)
}
}
Expand Down

0 comments on commit 7fcf8c8

Please sign in to comment.