11import Dependencies .*
22import Settings .*
3- import sbt .internal . ProjectMatrix
3+ import sbt .ProjectMatrix
44
5- lazy val root = (project withId " stryker4s " in file( " . " ))
5+ lazy val root = rootProject
66 .settings(
77 buildLevelSettings,
88 publish / skip := true ,
99 // Publish locally for sbt plugin testing
1010 addCommandAlias(
1111 " publishPluginLocal" ,
12- " set ThisBuild / version := \" 0.0.0-TEST-SNAPSHOT\" ; sbtPlugin/publishLocal; sbtTestRunner /publishLocal; sbtTestRunner3 /publishLocal"
12+ " set ThisBuild / version := \" 0.0.0-TEST-SNAPSHOT\" ; sbtPlugin2_12/publishLocal; sbtPlugin/publishLocal; sbtTestRunner2_13 /publishLocal; sbtTestRunner /publishLocal"
1313 ),
1414 // Publish to .m2 folder for Maven plugin testing
1515 addCommandAlias(
1616 " publishM2Local" ,
17- " set ThisBuild / version := \" SET-BY-SBT-SNAPSHOT\" ; core /publishM2;"
17+ " set ThisBuild / version := \" SET-BY-SBT-SNAPSHOT\" ; core2_13 /publishM2;"
1818 ),
1919 // Publish to .ivy folder for command runner local testing
2020 addCommandAlias(
2121 " publishCommandRunnerLocal" ,
2222 " set ThisBuild / version := \" 0.0.0-TEST-SNAPSHOT\" ; commandRunner/publishLocal"
2323 )
2424 )
25- .aggregate(
26- (core.projectRefs ++
27- commandRunner.projectRefs ++
28- sbtPlugin.projectRefs ++
29- sbtTestRunner.projectRefs ++
30- testRunnerApi.projectRefs ++
31- api.projectRefs ++
32- testkit.projectRefs) *
33- )
25+ .autoAggregate
3426
3527lazy val core = (projectMatrix in file(" modules" ) / " core" )
3628 .settings(commonSettings, coreSettings, publishLocalDependsOn(api, testRunnerApi, testkit))
@@ -45,7 +37,6 @@ lazy val commandRunner = (projectMatrix in file("modules") / "commandRunner")
4537// sbt plugins have to use Scala 2.12
4638lazy val sbtPlugin = (projectMatrix in file(" modules" ) / " sbt" )
4739 .enablePlugins(SbtPlugin )
48- .defaultAxes(VirtualAxis .scalaPartialVersion(" 2.12" ), VirtualAxis .jvm)
4940 .settings(commonSettings, sbtPluginSettings, publishLocalDependsOn(core))
5041 .dependsOn(core)
5142 .jvmPlatform(scalaVersions = Seq (versions.scala212, versions.scala3Lts))
0 commit comments