diff options
Diffstat (limited to 'core/src/test/scala/mill/util/TestGraphs.scala')
-rw-r--r-- | core/src/test/scala/mill/util/TestGraphs.scala | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/core/src/test/scala/mill/util/TestGraphs.scala b/core/src/test/scala/mill/util/TestGraphs.scala index 95ed8bf0..3ddae02d 100644 --- a/core/src/test/scala/mill/util/TestGraphs.scala +++ b/core/src/test/scala/mill/util/TestGraphs.scala @@ -192,8 +192,8 @@ object TestGraphs{ object singleCross extends TestUtil.BaseModule { - object cross extends mill.CrossModule(CrossModule, "210", "211", "212") - case class CrossModule(scalaVersion: String, ctx0: Module.Ctx) extends Module()(ctx0){ + object cross extends mill.CrossModule[CrossModule]("210", "211", "212") + class CrossModule(scalaVersion: String) extends Module{ def suffix = T{ scalaVersion } } } @@ -203,27 +203,27 @@ object TestGraphs{ platform <- Seq("jvm", "js", "native") if !(platform == "native" && scalaVersion != "212") } yield (scalaVersion, platform) - object cross extends mill.CrossModule2(CrossModule, crossMatrix:_*) - case class CrossModule(scalaVersion: String, platform: String, ctx0: Module.Ctx) extends Module()(ctx0){ + object cross extends mill.CrossModule[CrossModule](crossMatrix:_*) + class CrossModule(scalaVersion: String, platform: String) extends Module{ def suffix = T{ scalaVersion + "_" + platform } } } object indirectNestedCrosses extends TestUtil.BaseModule { - object cross extends mill.CrossModule(CrossModule, "210", "211", "212") - case class CrossModule(scalaVersion: String, ctx0: Module.Ctx) extends mill.Module()(ctx0){ - object cross2 extends mill.CrossModule(CrossModule, "jvm", "js", "native") - case class CrossModule(platform: String, ctx0: Module.Ctx) extends mill.Module{ + object cross extends mill.CrossModule[CrossModule]("210", "211", "212") + class CrossModule(scalaVersion: String) extends mill.Module{ + object cross2 extends mill.CrossModule[CrossModule]("jvm", "js", "native") + class CrossModule(platform: String) extends mill.Module{ def suffix = T{ scalaVersion + "_" + platform } } } } object nestedCrosses extends TestUtil.BaseModule { - object cross extends mill.CrossModule(CrossModule, "210", "211", "212") - case class CrossModule(scalaVersion: String, ctx0: Module.Ctx) extends mill.Module()(ctx0){ - object cross2 extends mill.CrossModule(CrossModule, "jvm", "js", "native") - case class CrossModule(platform: String, ctx0: Module.Ctx) extends mill.Module()(ctx0){ + object cross extends mill.CrossModule[CrossModule]("210", "211", "212") + class CrossModule(scalaVersion: String) extends mill.Module{ + object cross2 extends mill.CrossModule[CrossModule]("jvm", "js", "native") + class CrossModule(platform: String) extends mill.Module{ def suffix = T{ scalaVersion + "_" + platform } } } |