Skip to content

Commit

Permalink
fix versioning in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
majk-p committed Jun 20, 2021
1 parent 569698f commit eff5b84
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 @@ -76,10 +76,10 @@ val testDependencies = Seq(
"io.circe" %% "circe-literal" % Versions.circe
).map(_ % Test)

val mimaSettings =
val mimaSettings =
mimaPreviousArtifacts := {
val onlyPatchChanged = previousStableVersion.value.flatMap(CrossVersion.partialVersion) == CrossVersion.partialVersion(version.value)
if(onlyPatchChanged)
if (onlyPatchChanged)
previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet
else
Set.empty
Expand All @@ -103,8 +103,7 @@ lazy val docs = project
.in(file("mdoc")) // important: it must not be docs/
.settings(
mdocVariables := Map(
"VERSION" -> version.value,
"LATEST_STABLE_VERSION" -> previousStableVersion.value.get
"VERSION" -> { if (isSnapshot.value) previousStableVersion.value.get else version.value }
)
)
.dependsOn(oauth2)
Expand Down

0 comments on commit eff5b84

Please sign in to comment.