Skip to content

Commit

Permalink
Add tlBaseVersion, remove old mima settings, sbt-typelevel does this …
Browse files Browse the repository at this point in the history
…now.
  • Loading branch information
zarthross committed Sep 20, 2023
1 parent defd7cf commit ab0b85d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ val Versions = new {
ThisBuild / crossScalaVersions := Versions.scalaVersions
ThisBuild / scalaVersion := Versions.scala213
ThisBuild / tlFatalWarnings := false //TODO: ... fix this someday

ThisBuild / tlBaseVersion := "0.15"

val semVerRegex = """(\d+\.\d+\.)(\d+)(?:-SNAPSHOT)?""".r

lazy val root = tlCrossRootProject.aggregate(optics)
Expand All @@ -24,10 +27,6 @@ lazy val optics = crossProject(JVMPlatform, JSPlatform)
.settings(
name := "circe-optics",
description := "Monocle lenses and other tools for working with JSON values",
mimaPreviousArtifacts := (version.value match {
case semVerRegex(majorMinor, "0") => Set.empty
case semVerRegex(majorMinor, patch) => Set("io.circe" %% "circe-optics" % (majorMinor + (patch.toInt - 1)))
}),
libraryDependencies ++= Seq(
"dev.optics" %%% "monocle-core" % Versions.monocle,
"dev.optics" %%% "monocle-macro" % Versions.monocle % Test,
Expand Down

0 comments on commit ab0b85d

Please sign in to comment.