@@ -4,17 +4,13 @@ import sbtcrossproject.CrossPlugin.autoImport.crossProject
44
55ThisBuild / githubWorkflowPublishTargetBranches := Seq ()
66
7- ThisBuild / crossScalaVersions := Seq (" 2.12.13" , " 2.13.4" )
7+ ThisBuild / crossScalaVersions := Seq (" 2.12.13" , " 2.13.4" , " 3.0.0-RC1 " )
88
9- lazy val commonSettings = Def .settings(
10- scalaVersion := " 2.13.1" ,
11- crossScalaVersions := (ThisBuild / crossScalaVersions).value
12- )
9+ ThisBuild / scalaVersion := " 2.13.4"
1310
1411lazy val root = project.in(file(" ." )).aggregate(js, jvm).
1512 settings(
1613 name := " mouse" ,
17- commonSettings,
1814 publish / skip := true ,
1915 sonatypeProfileName := " org.typelevel" ,
2016 releaseCrossBuild := true
@@ -24,13 +20,11 @@ lazy val cross = crossProject(JSPlatform, JVMPlatform).in(file(".")).
2420 settings(
2521 name := " mouse" ,
2622 organization := " org.typelevel" ,
27- commonSettings,
2823 sonatypeProfileName := " org.typelevel" ,
2924 libraryDependencies ++= Seq (
3025 " org.typelevel" %%% " cats-core" % " 2.4.2" ,
3126 " org.scalatest" %%% " scalatest" % " 3.2.5" % Test ,
32- " org.scalatestplus" %%% " scalacheck-1-15" % " 3.2.5.0" % Test ,
33- compilerPlugin(" org.typelevel" %% " kind-projector" % " 0.11.3" cross CrossVersion .full)
27+ " org.scalatestplus" %%% " scalacheck-1-15" % " 3.2.5.0" % Test
3428 ),
3529 licenses += (" MIT license" , url(" http://opensource.org/licenses/MIT" )),
3630 homepage := Some (url(" https://github.com/typelevel/mouse" )),
@@ -39,11 +33,19 @@ lazy val cross = crossProject(JSPlatform, JVMPlatform).in(file(".")).
3933 scalacOptions ++= Seq (" -feature" , " -deprecation" , " -language:implicitConversions" , " -language:higherKinds" ),
4034 scalacOptions ++= {
4135 scalaVersion.value match {
42- case v if v.startsWith(" 2.13" ) => Nil
43- case _ => Seq (" -Ypartial-unification" )
36+ case v if v.startsWith(" 2.12" ) => Seq (" -Ypartial-unification" )
37+ case v if v.startsWith(" 3" ) => Seq (" -source" , " 3.0-migration" )
38+ case _ => Nil
4439 }
4540 },
4641 Test / publishArtifact := false ,
42+ Compile / doc / sources := {
43+ val old = (Compile / doc / sources).value
44+ if (isDotty.value)
45+ Seq ()
46+ else
47+ old
48+ },
4749 pomIncludeRepository := { _ => false },
4850 releasePublishArtifactsAction := PgpKeys .publishSigned.value,
4951 releaseProcess := Seq [ReleaseStep ](
@@ -59,6 +61,10 @@ lazy val cross = crossProject(JSPlatform, JVMPlatform).in(file(".")).
5961 commitNextVersion,
6062 )
6163 )
64+ .jsSettings(
65+ crossScalaVersions := (ThisBuild / crossScalaVersions).value.filter(_.startsWith(" 2" )),
66+ publishConfiguration := publishConfiguration.value.withOverwrite(true )
67+ )
6268
6369ThisBuild / githubWorkflowTargetTags ++= Seq (" v*" )
6470ThisBuild / githubWorkflowPublishTargetBranches :=
0 commit comments