11lazy val commonSettings = Seq (
22 organization := " com.evolutiongaming" ,
3- homepage := Some (new URL ( " http ://github.com/evolution-gaming/sequentially" )),
3+ homepage := Some (url( " https ://github.com/evolution-gaming/sequentially" )),
44 startYear := Some (2018 ),
55 organizationName := " Evolution" ,
6- organizationHomepage := Some (url(" http ://evolution.com" )),
6+ organizationHomepage := Some (url(" https ://evolution.com" )),
77 scalaVersion := crossScalaVersions.value.head,
8- crossScalaVersions := Seq (" 2.13.14" , " 2.12.19" , " 3.3.3" ),
8+ crossScalaVersions := Seq (" 2.13.14" , " 3.3.3" ),
9+ Compile / scalacOptions ++= {
10+ if (scalaBinaryVersion.value == " 2.13" ) {
11+ Seq (
12+ " -Xsource:3"
13+ )
14+ } else Seq .empty
15+ },
916 Compile / doc / scalacOptions += " -no-link-warnings" ,
1017 publishTo := Some (Resolver .evolutionReleases),
1118 licenses := Seq ((" MIT" , url(" https://opensource.org/licenses/MIT" ))),
1219 releaseCrossBuild := true ,
13- versionScheme := Some (" semver-spec" ))
20+ versionScheme := Some (" semver-spec" ),
21+ )
1422
23+ // Your next release will be binary compatible with the previous one,
24+ // but it may not be source compatible (ie, it will be a minor release).
25+ ThisBuild / versionPolicyIntention := Compatibility .BinaryAndSourceCompatible
1526
1627lazy val root = (project
1728 in file(" ." )
1829 settings (name := " sequentially-root" )
1930 settings commonSettings
2031 settings (publish / skip := true )
21- aggregate(sequentially, benchmark, `sequentially-metrics`))
32+ aggregate (sequentially, benchmark, `sequentially-metrics`))
2233
2334lazy val sequentially = (project
2435 in file(" sequentially" )
2536 settings (name := " sequentially" )
2637 settings commonSettings
2738 settings (libraryDependencies ++= Seq (
28- " com.typesafe.akka" %% " akka-stream" % " 2.6.21" ,
29- " com.typesafe.akka" %% " akka-testkit" % " 2.6.21" % Test ,
30- " com.evolutiongaming" %% " executor-tools " % " 1.0.4 " ,
31- " com.evolutiongaming " %% " future-helper " % " 1.0.7 " ,
32- " org.scalatest " %% " scalatest " % " 3.2.10 " % Test )))
39+ " com.typesafe.akka" %% " akka-stream" % " 2.6.21" ,
40+ " com.typesafe.akka" %% " akka-testkit" % " 2.6.21" % Test ,
41+ " com.evolutiongaming" %% " future-helper " % " 1.0.7 " ,
42+ " org.scalatest " %% " scalatest " % " 3.2.10 " % Test ,
43+ )))
3344
3445lazy val benchmark = (project
3546 in file(" benchmark" )
36- enablePlugins( JmhPlugin )
47+ enablePlugins JmhPlugin
3748 settings (name := " benchmark" )
3849 settings commonSettings
3950 dependsOn sequentially)
@@ -47,4 +58,10 @@ lazy val `sequentially-metrics` = (project
4758 " com.evolutiongaming" %% " prometheus-tools" % " 1.0.8"
4859 )))
4960
50- addCommandAlias(" check" , " show version" )
61+ // used by evolution-gaming/scala-github-actions
62+ addCommandAlias(
63+ " check" ,
64+ " all versionPolicyCheck Compile/doc scalafmtCheckAll scalafmtSbtCheck; scalafixEnable; scalafixAll --check" ,
65+ )
66+
67+ addCommandAlias(" fmtAll" , " all scalafmtAll scalafmtSbt; scalafixEnable; scalafixAll" )
0 commit comments