@@ -77,16 +77,14 @@ inThisBuild(
7777 ),
7878 githubWorkflowPublishTargetBranches := List (RefPredicate .StartsWith (Ref .Tag (" v" ))),
7979 githubWorkflowTargetTags ++= Seq (" v*" ),
80+ versionPolicyFirstVersion := Some (" 0.1.1" ),
8081 versionPolicyIntention := Compatibility .BinaryAndSourceCompatible ,
8182 versionScheme := Some (" early-semver" )
8283 )
8384)
8485
8586val commonProjectSettings = List (
8687 isScala213 := isScala213Setting.value,
87- // TODO: Remove this after the first release.
88- mimaFailOnNoPrevious := false ,
89- mimaPreviousArtifacts := previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet,
9088 scalastyleFailOnError := true ,
9189 scalastyleFailOnWarning := true ,
9290 // Workaround for https://github.com/cb372/sbt-explicit-dependencies/issues/97
@@ -104,7 +102,8 @@ val commonProjectSettings = List(
104102val metaProjectSettings = List (
105103 crossScalaVersions := Nil ,
106104 publish / skip := true ,
107- mimaFailOnNoPrevious := false
105+ mimaFailOnNoPrevious := false ,
106+ mimaPreviousArtifacts := Set .empty
108107)
109108
110109val libraryProjectSettings = commonProjectSettings
@@ -195,7 +194,9 @@ lazy val docs = (project in file("doc-templates"))
195194 },
196195 mdocOut := (ThisBuild / baseDirectory).value,
197196 mdocVariables := Map (
198- " VERSION" -> previousStableVersion.value.getOrElse(version.value)
197+ // This is configured for GitHub where we want to show the previous version.
198+ // After a release we need to update the docs and do a git push.
199+ " VERSION" -> versionPolicyPreviousVersions.value.lastOption.getOrElse(versionPolicyFirstVersion.value.get)
199200 ),
200201 unusedCompileDependenciesFilter -= new ModuleFilter {
201202
0 commit comments