dokwork / sbt-keepup   0.1.0

MIT License GitHub

This library is extension for the sbt-release plugin which adds new release steps to keep up version of your libraries in the README file.

Keep up

Build Status Download

This library is extension for the sbt-release plugin which adds new release steps to keep up version of your libraries in the README file.

Installation

Add to the project/plugins.sbt:

addSbtPlugin("ru.dokwork" % "sbt-keepup" % "0.1.0")

How to use:

Just specify README file:

releaseReadmeFile := Some(baseDirectory.value / "README.md")

Custom regex pattern

Default regex is: \%\s+\"(\d{1,2}\.\d{1,2}\.\d{1,2})\". If you want change it, you should specify setting:

releaseReadmeVersionRegex := """\d{1,2}\.\d{1,2}\.\d{1,2}""".r

This plugin tries to set the current version of the project as the first found group or replace matched part entirely.

PR to the original project

sbt/sbt-release#217

muuki88/sbt-release#1