Skip to content

Commit

Permalink
Merge pull request #212 from Atry/DefaultVersionScheme
Browse files Browse the repository at this point in the history
Add DefaultVersionScheme plugin
  • Loading branch information
Atry authored Nov 3, 2021
2 parents dabedbd + 726d8f9 commit 81f1dd6
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 81f1dd6

Please sign in to comment.