Skip to content

Commit a04a22f

Browse files
committed
Port to sbt-typelevel
1 parent eb04ec7 commit a04a22f

File tree

3 files changed

+23
-27
lines changed

3 files changed

+23
-27
lines changed

build.sbt

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,34 @@ import com.typesafe.tools.mima.core.ReversedMissingMethodProblem
22
import com.typesafe.tools.mima.core.ProblemFilters
33
Global / onChangedBuildSource := ReloadOnSourceChanges
44

5-
ThisBuild / baseVersion := "0.3.0"
5+
ThisBuild / tlBaseVersion := "0.7"
6+
ThisBuild / tlCiReleaseBranches := Seq()
67
ThisBuild / organization := "org.systemfw"
7-
ThisBuild / publishGithubUser := "SystemFw"
8-
ThisBuild / publishFullName := "Fabio Labella"
9-
ThisBuild / homepage := Some(url("https://github.com/SystemFw/dynosaur"))
10-
ThisBuild / scmInfo := Some(
11-
ScmInfo(
12-
url("https://github.com/SystemFw/dynosaur"),
13-
"[email protected]:SystemFw/dynosaur.git"
14-
)
8+
ThisBuild / organizationName := "Fabio Labella"
9+
ThisBuild / developers ++= List(
10+
tlGitHubDev("SystemFw", "Fabio Labella")
1511
)
1612
ThisBuild / startYear := Some(2020)
17-
Global / excludeLintKeys += scmInfo
13+
1814

1915
val Scala213 = "2.13.10"
2016
val scala3 = "3.3.1"
21-
ThisBuild / spiewakMainBranches := Seq("main")
17+
2218

2319
ThisBuild / crossScalaVersions := Seq(Scala213, scala3, "2.12.14")
24-
ThisBuild / versionIntroduced := Map("3.0.0" -> "0.3.0")
20+
ThisBuild / tlVersionIntroduced := Map("3.0.0" -> "0.3.0")
2521
ThisBuild / scalaVersion := (ThisBuild / crossScalaVersions).value.head
2622
ThisBuild / initialCommands := """
2723
|import cats._, data._, syntax.all._
2824
|import dynosaur._
2925
""".stripMargin
3026

31-
lazy val root = project
32-
.in(file("."))
33-
.enablePlugins(NoPublishPlugin, SonatypeCiReleasePlugin)
27+
// If debugging tests, it's sometimes useful to disable parallel
28+
// execution and test result buffering:
29+
// ThisBuild / Test / parallelExecution := false
30+
// ThisBuild / Test / testOptions += Tests.Argument(TestFrameworks.MUnit, "-b")
31+
32+
lazy val root = tlCrossRootProject
3433
.aggregate(core.js, core.jvm, benchmark)
3534

3635
lazy val core = crossProject(JSPlatform, JVMPlatform)
@@ -70,13 +69,11 @@ lazy val core = crossProject(JSPlatform, JVMPlatform)
7069
)
7170
)
7271

73-
lazy val coreJS = core.js
74-
lazy val coreJVM = core.jvm
7572

7673
lazy val benchmark = project
7774
.in(file("modules/benchmark"))
7875
.dependsOn(core.jvm)
79-
.enablePlugins(JmhPlugin)
76+
.enablePlugins(JmhPlugin, NoPublishPlugin)
8077
.disablePlugins(MimaPlugin)
8178

8279
lazy val jsdocs = project
@@ -100,7 +97,7 @@ lazy val docs = project
10097
.mkString("\n")
10198
),
10299
githubWorkflowArtifactUpload := false,
103-
fatalWarningsInCI := false
100+
tlFatalWarnings := false
104101
)
105102
.dependsOn(core.jvm)
106103
.enablePlugins(MdocPlugin, NoPublishPlugin)
@@ -125,7 +122,7 @@ ThisBuild / githubWorkflowAddedJobs += WorkflowJob(
125122
""".stripMargin.trim.linesIterator.mkString.some,
126123
steps = githubWorkflowGeneratedDownloadSteps.value.toList :+
127124
WorkflowStep.Use(
128-
UseRef.Public("peaceiris", "actions-gh-pages", "v3"),
125+
UseRef.Public("peaceiris", "actions-gh-pages", "v4"),
129126
name = Some(s"Deploy docs"),
130127
params = Map(
131128
"publish_dir" -> "./target/website",

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.9.7
1+
sbt.version=1.11.2

project/plugins.sbt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
addSbtPlugin("com.codecommit" % "sbt-spiewak-sonatype" % "0.23.0")
2-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
3-
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.4.0")
4-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.14.0")
5-
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")
6-
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.6")
1+
addSbtPlugin("org.typelevel" % "sbt-typelevel" % "0.8.0")
2+
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.7.1")
3+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.18.2")
4+
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17")
5+
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.7")

0 commit comments

Comments
 (0)