@@ -4,17 +4,13 @@ import sbtcrossproject.CrossPlugin.autoImport.crossProject
4
4
5
5
ThisBuild / githubWorkflowPublishTargetBranches := Seq ()
6
6
7
- ThisBuild / crossScalaVersions := Seq (" 2.12.13" , " 2.13.4" )
7
+ ThisBuild / crossScalaVersions := Seq (" 2.12.13" , " 2.13.4" , " 3.0.0-RC1 " )
8
8
9
- lazy val commonSettings = Def .settings(
10
- scalaVersion := " 2.13.1" ,
11
- crossScalaVersions := (ThisBuild / crossScalaVersions).value
12
- )
9
+ ThisBuild / scalaVersion := " 2.13.4"
13
10
14
11
lazy val root = project.in(file(" ." )).aggregate(js, jvm).
15
12
settings(
16
13
name := " mouse" ,
17
- commonSettings,
18
14
publish / skip := true ,
19
15
sonatypeProfileName := " org.typelevel" ,
20
16
releaseCrossBuild := true
@@ -24,13 +20,11 @@ lazy val cross = crossProject(JSPlatform, JVMPlatform).in(file(".")).
24
20
settings(
25
21
name := " mouse" ,
26
22
organization := " org.typelevel" ,
27
- commonSettings,
28
23
sonatypeProfileName := " org.typelevel" ,
29
24
libraryDependencies ++= Seq (
30
25
" org.typelevel" %%% " cats-core" % " 2.4.2" ,
31
26
" 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
34
28
),
35
29
licenses += (" MIT license" , url(" http://opensource.org/licenses/MIT" )),
36
30
homepage := Some (url(" https://github.com/typelevel/mouse" )),
@@ -39,11 +33,19 @@ lazy val cross = crossProject(JSPlatform, JVMPlatform).in(file(".")).
39
33
scalacOptions ++= Seq (" -feature" , " -deprecation" , " -language:implicitConversions" , " -language:higherKinds" ),
40
34
scalacOptions ++= {
41
35
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
44
39
}
45
40
},
46
41
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
+ },
47
49
pomIncludeRepository := { _ => false },
48
50
releasePublishArtifactsAction := PgpKeys .publishSigned.value,
49
51
releaseProcess := Seq [ReleaseStep ](
@@ -59,6 +61,10 @@ lazy val cross = crossProject(JSPlatform, JVMPlatform).in(file(".")).
59
61
commitNextVersion,
60
62
)
61
63
)
64
+ .jsSettings(
65
+ crossScalaVersions := (ThisBuild / crossScalaVersions).value.filter(_.startsWith(" 2" )),
66
+ publishConfiguration := publishConfiguration.value.withOverwrite(true )
67
+ )
62
68
63
69
ThisBuild / githubWorkflowTargetTags ++= Seq (" v*" )
64
70
ThisBuild / githubWorkflowPublishTargetBranches :=
0 commit comments