11Global / cancelable := true
22publish / skip := true // in root
33
4- Global / scalacOptions ++= (
5- if (isDotty.value) Seq (" -language:implicitConversions" ) // TODO check again on 3.0.0-M1
6- else Seq ()
7- )
8-
94lazy val commonSettings : Seq [Setting [_]] =
105 ScalaModulePlugin .scalaModuleSettings ++ Seq (
116 Compile / compile / scalacOptions --= (if (isDotty.value) Seq (" -Xlint" )
@@ -32,21 +27,12 @@ lazy val junit = project.in(file("junit"))
3227 testOptions += Tests .Argument (TestFrameworks .JUnit , " -a" , " -v" ),
3328 Test / fork := true ,
3429 publish / skip := true ,
35- // https://github.com/sbt/sbt/pull/5919 adds this to sbt itself,
36- // so we should revisit once sbt 1.4.1 is available
37- Test / unmanagedSourceDirectories += {
38- val major = CrossVersion .partialVersion(scalaVersion.value) match {
39- case Some ((0 | 3 , _)) => " 3"
40- case _ => " 2"
41- }
42- baseDirectory.value / " src" / " test" / s " scala- $major"
43- },
4430 ).dependsOn(testmacros, core)
4531
4632lazy val scalacheck = project.in(file(" scalacheck" ))
4733 .settings(commonSettings)
4834 .settings(
49- libraryDependencies += " org.scalacheck" %% " scalacheck" % " 1.15.0" withDottyCompat(scalaVersion.value) ,
35+ libraryDependencies += " org.scalacheck" %% " scalacheck" % " 1.15.0" ,
5036 Test / fork := true ,
5137 Test / testOptions += Tests .Argument (TestFrameworks .ScalaCheck , " -workers" , " 1" , " -minSize" , " 0" , " -maxSize" , " 4000" , " -minSuccessfulTests" , " 5" ),
5238 publish / skip := true
@@ -55,15 +41,11 @@ lazy val scalacheck = project.in(file("scalacheck"))
5541lazy val testmacros = project.in(file(" testmacros" ))
5642 .settings(commonSettings)
5743 .settings(
58- libraryDependencies += scalaOrganization.value % " scala-compiler" % scalaVersion.value,
44+ libraryDependencies += (
45+ if (isDotty.value)
46+ scalaOrganization.value %% " scala3-compiler" % scalaVersion.value
47+ else
48+ scalaOrganization.value % " scala-compiler" % scalaVersion.value
49+ ),
5950 publish / skip := true ,
60- // https://github.com/sbt/sbt/pull/5919 adds this to sbt itself,
61- // so we should revisit once sbt 1.4.1 is available
62- Compile / unmanagedSourceDirectories += {
63- val major = CrossVersion .partialVersion(scalaVersion.value) match {
64- case Some ((0 | 3 , _)) => " 3"
65- case _ => " 2"
66- }
67- baseDirectory.value / " src" / " main" / s " scala- $major"
68- },
6951 )
0 commit comments