Skip to content

Commit

Permalink
Add sbt-ci-release
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Dec 11, 2023
1 parent abb4bd9 commit e34ec5a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
28 changes: 10 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,34 @@
# sbt-multi-jvm

[![Download](https://api.bintray.com/packages/sbt-multi-jvm/sbt-plugins/sbt-multi-jvm/images/download.svg) ](https://bintray.com/sbt-multi-jvm/sbt-plugins/sbt-multi-jvm/_latestVersion)
[![Build Status](https://github.com/sbt/sbt-multi-jvm/actions/workflows/build-test.yml/badge.svg)](https://github.com/sbt/sbt-multi-jvm/actions/workflows/build-test.yml)
[![Repository size](https://img.shields.io/github/repo-size/sbt/sbt-multi-jvm.svg?logo=git)](https://github.com/sbt/sbt-multi-jvm)

An [sbt] plugin for running scalatest tests in multiple JVMs. This plugin
requires sbt 0.13.5 or higher
A [sbt] plugin for running scalatest tests in multiple JVMs. This plugin requires sbt 1.9.7 or higher

[sbt]: http://www.scala-sbt.org


## Add plugin

To use the plugin in a project add the following to `project/plugins.sbt`:

addSbtPlugin("com.typesafe.sbt" % "sbt-multi-jvm" % "0.4.0")

addSbtPlugin("com.github.sbt" % "sbt-multi-jvm" % "0.5.0")

## More information

For more information about using sbt-multi-jvm see the
[akka documentation][akka-docs].
For more information about using sbt-multi-jvm see the [akka documentation][akka-docs].

[akka-docs]: http://doc.akka.io/docs/akka/current/scala/multi-jvm-testing.html#multi-jvm-testing

## Releasing

This plugin is hosted under the `sbt-multi-jvm` organisation on bintray. When publishing you should use a bintray account which can write to this organisation, by providing the following credentials in `$HOME/.bintray/.credentials`

```
realm = Bintray API Realm
host = api.bintray.com
user = USERNAME
password = TOKEN
```
1. Tag the release: `git tag -s 1.2.3`
1. Push tag: `git push upstream 1.2.3`
1. GitHub action workflow does the rest: https://github.com/sbt/sbt-multi-jvm/actions/workflows/publish.yml
- Snapshots are published to https://oss.sonatype.org/content/repositories/snapshots/com/github/sbt/sbt-multi-jvm/
- Releases are published to https://repo1.maven.org/maven2/com/github/sbt/sbt-multi-jvm/ (takes up to 1 hour)

## License

Copyright 2012-2017 Typesafe, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
Expand Down
10 changes: 10 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
lazy val `sbt-multi-jvm` = project in file(".")

// Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed
ThisBuild / dynverVTagPrefix := true

// Sanity-check: assert that version comes from a tag (e.g. not a too-shallow clone)
// https://github.com/dwijnand/sbt-dynver/#sanity-checking-the-version
Global / onLoad := (Global / onLoad).value.andThen { s =>
dynverAssertTagVersion.value
s
}

crossScalaVersions := Seq("2.12.18")
organization := "com.github.sbt"
name := "sbt-multi-jvm"
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")

0 comments on commit e34ec5a

Please sign in to comment.