@@ -9,35 +9,23 @@ ThisBuild / organizationName := "Typelevel"
99ThisBuild / publishGithubUser := " mpilquist"
1010ThisBuild / publishFullName := " Michael Pilquist"
1111
12- ThisBuild / crossScalaVersions := List (" 0.27.0-RC1 " , " 3.0.0-M1" , " 2.12.11" , " 2.13.3" )
12+ ThisBuild / crossScalaVersions := List (" 3.0.0-M2 " , " 3.0.0-M1" , " 2.12.11" , " 2.13.3" )
1313
1414ThisBuild / versionIntroduced := Map (
15- " 0.27.0-RC1 " -> " 0.1.99" , // Disable for now due to bug in sbt-spiewak with RCs
16- " 3.0.0-M1 " -> " 0.1.99" // Disable for now due to bug in sbt-spiewak with RCs
15+ " 3.0.0-M1 " -> " 0.1.99" , // Disable for now due to bug in sbt-spiewak with RCs
16+ " 3.0.0-M2 " -> " 0.1.99" // Disable for now due to bug in sbt-spiewak with RCs
1717)
1818
19- ThisBuild / githubWorkflowPublishTargetBranches := Seq (
20- RefPredicate .Equals (Ref .Branch (" main" )),
21- RefPredicate .StartsWith (Ref .Tag (" v" ))
22- )
23- ThisBuild / githubWorkflowEnv ++= Map (
24- " SONATYPE_USERNAME" -> s " $$ {{ secrets.SONATYPE_USERNAME }} " ,
25- " SONATYPE_PASSWORD" -> s " $$ {{ secrets.SONATYPE_PASSWORD }} " ,
26- " PGP_SECRET" -> s " $$ {{ secrets.PGP_SECRET }} " ,
27- " PGP_PASSPHRASE" -> s " $$ {{ secrets.PGP_PASSPHRASE }} "
28- )
29- ThisBuild / githubWorkflowTargetTags += " v*"
30-
31- ThisBuild / githubWorkflowPublishPreamble +=
32- WorkflowStep .Run (
33- List (" echo $PGP_SECRET | base64 -d | gpg --import" ),
34- name = Some (" Import signing key" )
35- )
19+ ThisBuild / spiewakCiReleaseSnapshots := true
3620
37- ThisBuild / githubWorkflowPublish := Seq ( WorkflowStep . Sbt ( List (" release " )) )
21+ ThisBuild / spiewakMainBranches := List (" main " )
3822
3923ThisBuild / homepage := Some (url(" https://github.com/typelevel/scalacheck-effect" ))
4024
25+ ThisBuild / licenses := List (" Apache-2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0" ))
26+
27+ ThisBuild / scalafmtOnCompile := true
28+
4129ThisBuild / scmInfo := Some (
4230 ScmInfo (
4331 url(" https://github.com/typelevel/scalacheck-effect" ),
@@ -48,40 +36,24 @@ ThisBuild / scmInfo := Some(
4836lazy val root = project
4937 .in(file(" ." ))
5038 .aggregate(core.jvm, core.js, munit.jvm, munit.js)
51- .settings(noPublishSettings)
52-
53- val commonSettings = Seq (
54- homepage := Some (url(" https://github.com/typelevel/scalacheck-effect" )),
55- licenses := List (" Apache-2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0" )),
56- libraryDependencies ++= {
57- if (isDotty.value) Nil
58- else Seq (scalafixSemanticdb)
59- },
60- scalafmtOnCompile := true
61- )
39+ .enablePlugins(NoPublishPlugin , SonatypeCiRelease )
6240
6341lazy val core = crossProject(JSPlatform , JVMPlatform )
64- .settings(commonSettings)
6542 .settings(
6643 name := " scalacheck-effect" ,
6744 Compile / scalacOptions ~= {
6845 _.filterNot(_ == " -Xfatal-warnings" )
6946 } // we need to turn this off because scalacheck's API uses Stream, which is deprecated
7047 )
71- .settings(dottyLibrarySettings)
7248 .settings(dottyJsSettings(ThisBuild / crossScalaVersions))
7349 .settings(
7450 libraryDependencies ++= List (
7551 " org.scalacheck" %%% " scalacheck" % " 1.15.1" ,
76- " org.typelevel" %%% " cats-core" % " 2.3.0-M2 "
52+ " org.typelevel" %%% " cats-core" % " 2.3.0"
7753 )
7854 )
79- .jsSettings(
80- crossScalaVersions := crossScalaVersions.value.filter(_.startsWith(" 2." ))
81- )
8255
8356lazy val munit = crossProject(JSPlatform , JVMPlatform )
84- .settings(commonSettings)
8557 .settings(
8658 name := " scalacheck-effect-munit" ,
8759 testFrameworks += new TestFramework (" munit.Framework" )
@@ -90,14 +62,10 @@ lazy val munit = crossProject(JSPlatform, JVMPlatform)
9062 scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind .CommonJSModule ))
9163 )
9264 .dependsOn(core)
93- .settings(dottyLibrarySettings)
9465 .settings(dottyJsSettings(ThisBuild / crossScalaVersions))
9566 .settings(
9667 libraryDependencies ++= List (
9768 " org.scalameta" %%% " munit-scalacheck" % " 0.7.19" ,
98- " org.typelevel" %%% " cats-effect" % " 2.3.0-M1 " % Test
69+ " org.typelevel" %%% " cats-effect" % " 2.3.0" % Test
9970 )
10071 )
101- .jsSettings(
102- crossScalaVersions := crossScalaVersions.value.filter(_.startsWith(" 2." ))
103- )
0 commit comments