From 7fcf8c8ecb5e68c25ab19f9482ada85778789bdf Mon Sep 17 00:00:00 2001 From: rockjam <5min4eq.unity@gmail.com> Date: Mon, 16 Apr 2018 00:25:51 +0300 Subject: [PATCH] fix cross sbt module tests --- integration/test/resources/play-json/build.sc | 2 +- scalalib/src/mill/scalalib/MiscModule.scala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/test/resources/play-json/build.sc b/integration/test/resources/play-json/build.sc index c60eefbac01..2f3dabb4cba 100644 --- a/integration/test/resources/play-json/build.sc +++ b/integration/test/resources/play-json/build.sc @@ -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 diff --git a/scalalib/src/mill/scalalib/MiscModule.scala b/scalalib/src/mill/scalalib/MiscModule.scala index 24a0356ccca..1d44964e478 100644 --- a/scalalib/src/mill/scalalib/MiscModule.scala +++ b/scalalib/src/mill/scalalib/MiscModule.scala @@ -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" ) } }