@auto-canary/sbt v10.26.0--canary.1962.23949.0
sbt plugin
Publish Scala projects with sbt
:warning: only sbt 1.4+ is supported at the moment because this plugin uses
sbt --client
functionality
Installation
This plugin is not included with the auto
CLI installed via NPM. To install:
npm i --save-dev @auto-it/sbt
# or
yarn add -D @auto-it/sbt
Usage
{
"plugins": [
"sbt"
]
}
It is strongly recommended to use an sbt plugin to manage the version. There are a few options, but the most reliable and well maintained is sbt-dynver. To enable it in your project add this line to project/plugins.sbt
:
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "x.y.z")
and then, depending on the publishing repository (e.g. if you are publishing to Sonatype Nexus), you might want to add
ThisBuild / dynverSeparator := "-"
ThisBuild / dynverSonatypeSnapshots := true
to your build.sbt
.
With this setup canary versions will look like this: {last_tag}-{number_of_commits}-{commit_sha}-SNAPSHOT
, for example:
0.1.2-5-fcdf268c-SNAPSHOT
Options
manageVersion: boolean
(default: false
)
If you don't want to use an sbt plugin for version management, you can let Auto manage the version:
{
"plugins": [
[
"sbt",
{
"manageVersion": true
}
]
]
}
With this option Auto will override the version in sbt during the release process.
Canary versions will look like this: {last_tag}-canary.{pr_number}.{build_number}-SNAPSHOT
, for example:
0.1.2-canary.47.5fa1736-SNAPSHOT
Here build number is the git commit SHA.
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago