Skip to content

Commit

Permalink
Add DefaultVersionScheme plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed Nov 3, 2021
1 parent 21bad16 commit 726d8f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ lazy val mima = project

lazy val `skip-duplicate-java-publish` = project

lazy val `version-scheme` = project

dependsOn(
`scalac-options`,
`detect-license`,
Expand All @@ -31,7 +33,8 @@ dependsOn(
`publish-unidoc`,
`detect-scala-organization`,
`subdirectory-organization`,
`skip-duplicate-java-publish`
`skip-duplicate-java-publish`,
`version-scheme`
)

libraryDependencies += "com.lihaoyi" %% "sourcecode" % "0.2.7"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.thoughtworks.sbtBestPractice.versionScheme

import sbt.AutoPlugin
import sbt._, Keys._

object DefaultVersionScheme extends AutoPlugin {
override def trigger = allRequirements
override def buildSettings = Seq(ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec))
}

0 comments on commit 726d8f9

Please sign in to comment.