Skip to content

Commit 0993f7d

Browse files
committed
Update version policy settings
1 parent 718c019 commit 0993f7d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ For most use cases you should add Scala2PlantUML as a global plugin since your b
3333
Create `~/.sbt/1.0/plugins/scala2PlantUML.sbt` containing:
3434

3535
```text
36-
addSbtPlugin("nz.co.bottech" % "sbt-scala2plantuml" % "0.1.0")
36+
addSbtPlugin("nz.co.bottech" % "sbt-scala2plantuml" % "0.1.1")
3737
```
3838

3939
## CLI
@@ -49,7 +49,7 @@ cs install --channel https://git.io/Jqv1i scala2plantuml
4949
### Usage
5050

5151
```text
52-
Scala2PlantUML version 0.1.0
52+
Scala2PlantUML version 0.1.1
5353
Usage: scala2plantuml [options] symbol
5454
5555
Scala2PlantUML generates PlantUML Class Diagrams from Scala SemanticDB files.

build.sbt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

8586
val 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(
104102
val metaProjectSettings = List(
105103
crossScalaVersions := Nil,
106104
publish / skip := true,
107-
mimaFailOnNoPrevious := false
105+
mimaFailOnNoPrevious := false,
106+
mimaPreviousArtifacts := Set.empty
108107
)
109108

110109
val 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

Comments
 (0)