GithubHelp home page GithubHelp logo

isabella232 / sbt-versioning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from automattic/sbt-versioning

0.0 0.0 0.0 36 KB

An opinionated versioning plugin

License: GNU General Public License v3.0

Scala 100.00%

sbt-versioning's Introduction

An opinionated plugin to assist with versioning.

setting description
versionFile The plugin expects an external file to contain the version. By default it's VERSION beside build.sbt, you can override it with this setting.
isClient For versioning clients, the version string will be 1.2 and drop the patch version. This is ignored when an upgrade is being performed with a major/minor beta.
beforeUpgrade Expects a function (currentVersion: String, newVersion: String) => Unit which is called just before performing the version changes.
afterUpgrade Expects a function (previousVersion: String, newVersion: String) => Unit which is called just after performing version changes.
replaceVersions Runs a regex over a file. Expects a Map[File, (matchRegex: String, replacement: String)]. You can use the term VERSION in your regex to refer to the respective version string.

Upgrading a version

In the sbt shell, execute:

upgradeVersion --increment [patch|minor|major|patch-beta|minor-beta|major-beta] <--update>

Specifying --update will perform the beforeUpgrade, afterUpgrade and replaceVersion steps. Otherwise, it will just output the next version.

Contributing

Open a pull-request. Testing can be performed through sbt test and plugin testing through sbt scripted.

sbt-versioning's People

Contributors

withinboredom avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.