11.1.6 • Published 28 days ago

@auto-it/sbt v11.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
28 days ago

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

setCanaryVersion: boolean (default: false)

If you don't want to use an sbt plugin for version management, you can let Auto manage the canary version:

{
  "plugins": [
    [
      "sbt",
      {
        "setCanaryVersion": true
      }
    ]
  ]
}

With this option Auto will override the version in sbt during canary 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.

publishCommand: string (default: publish)

If you need to run some custom publishing command, you can change this option. For example, to cross-publish a library:

{
  "plugins": [
    [
      "sbt",
      {
        "publishCommand": "+publish"
      }
    ]
  ]
}
11.1.5

28 days ago

11.1.6

28 days ago

11.1.4

28 days ago

11.1.3

28 days ago

11.1.2

1 month ago

11.0.6

2 months ago

11.0.7

2 months ago

11.0.5

2 months ago

11.1.1

2 months ago

11.1.0

2 months ago

11.0.4

8 months ago

11.0.2

8 months ago

11.0.3

8 months ago

11.0.0

9 months ago

11.0.1

9 months ago

10.45.2

1 year ago

10.45.1

1 year ago

10.45.0

1 year ago

10.46.0

1 year ago

10.41.0

1 year ago

10.43.0

1 year ago

10.38.1

1 year ago

10.38.0

1 year ago

10.38.3

1 year ago

10.38.2

1 year ago

10.38.5

1 year ago

10.38.4

1 year ago

10.40.0

1 year ago

10.42.0

1 year ago

10.44.0

1 year ago

10.42.2

1 year ago

10.42.1

1 year ago

10.39.0

1 year ago

10.39.1

1 year ago

10.37.6

2 years ago

10.37.5

2 years ago

10.37.2

2 years ago

10.37.1

2 years ago

10.37.4

2 years ago

10.37.3

2 years ago

10.37.0

2 years ago

10.36.6

2 years ago

10.36.1

2 years ago

10.36.0

2 years ago

10.35.1

2 years ago

10.34.2

2 years ago

10.36.3

2 years ago

10.36.2

2 years ago

10.35.0

2 years ago

10.36.5

2 years ago

10.36.4

2 years ago

10.33.0

2 years ago

10.34.1

2 years ago

10.34.0

2 years ago

10.33.1

2 years ago

10.32.5

2 years ago

10.32.4

2 years ago

10.32.6

2 years ago

10.32.3

2 years ago

10.32.2

3 years ago

10.32.1

3 years ago

10.32.0

3 years ago

10.31.0

3 years ago

10.30.0

3 years ago

10.29.3

3 years ago

10.29.2

3 years ago

10.29.1

3 years ago

10.29.0

3 years ago

10.28.0

3 years ago

10.27.1

3 years ago

10.27.0

3 years ago