Skip to content

Commit

Permalink
Setting version to 2.4.1-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
jbwheatley committed Dec 4, 2020
1 parent 4de49f3 commit 97e4c98
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A Consumer Driven Contract testing library for Scala and [ScalaTest](http://www.

Scala-Pact is intended for Scala developers who are looking for a better way to manage the HTTP contracts between their services.

## Latest version is 2.4.0
## Latest version is 3.0.0

Scala-Pact currently only supports [v2 of the pact specification](https://github.com/pact-foundation/pact-specification/tree/version-2). Support for v3 is a future goal of the project.

Expand All @@ -14,7 +14,7 @@ Before this version, the project versioning did not follow semantic versioning.

Scala-Pact now has two branches based on SBT requirements.

#### SBT 1.x compatible (Latest 2.4.0)
#### SBT 1.x compatible (Latest 3.0.0)

All development going forward begins at `2.3.x` and resides on the `master` branch.
For the sake of the maintainer's sanity, version 2.3.x and beyond will only support Scala 2.12 and SBT 1.x or greater. The project is currently cross-compiled across scala 2.12.12 and 2.13.4.
Expand Down Expand Up @@ -50,14 +50,14 @@ import com.itv.scalapact.plugin._
enablePlugins(ScalaPactPlugin)

libraryDependencies ++= Seq(
"com.itv" %% "scalapact-scalatest-suite" % "2.4.0" % "test",
"com.itv" %% "scalapact-scalatest-suite" % "3.0.0" % "test",
"org.scalatest" %% "scalatest" % "3.0.5" % "test"
)
```

Add this line to your `project/plugins.sbt` file to install the plugin:
```scala
addSbtPlugin("com.itv" % "sbt-scalapact" % "2.4.0")
addSbtPlugin("com.itv" % "sbt-scalapact" % "3.0.0")
```

Both the import and the plugin come pre-packaged with the latest JSON and Http libraries (http4s 0.21.x, and circe 0.13.x).
Expand All @@ -73,27 +73,27 @@ import com.itv.scalapact.plugin._
enablePlugins(ScalaPactPlugin)

libraryDependencies ++= Seq(
"com.itv" %% "scalapact-circe-0-13" % "2.4.0" % "test",
"com.itv" %% "scalapact-http4s-0-21" % "2.4.0" % "test",
"com.itv" %% "scalapact-scalatest" % "2.4.0" % "test",
"com.itv" %% "scalapact-circe-0-13" % "3.0.0" % "test",
"com.itv" %% "scalapact-http4s-0-21" % "3.0.0" % "test",
"com.itv" %% "scalapact-scalatest" % "3.0.0" % "test",
"org.scalatest" %% "scalatest" % "3.0.5" % "test"
)
```

Add this line to your `project/plugins.sbt` file to install the plugin:
```scala
addSbtPlugin("com.itv" % "sbt-scalapact" % "2.4.0")
addSbtPlugin("com.itv" % "sbt-scalapact" % "3.0.0")
```
This version of the plugin comes pre-packaged with the latest JSON and Http libraries.
Thanks to the way SBT works, that one plugin line will work in most cases, but if you're still having conflicts, you can also do this to use your preferred libraries:

```scala
libraryDependencies ++= Seq(
"com.itv" %% "scalapact-argonaut-6-2" % "2.4.0",
"com.itv" %% "scalapact-http4s-0-21" % "2.4.0"
"com.itv" %% "scalapact-argonaut-6-2" % "3.0.0",
"com.itv" %% "scalapact-http4s-0-21" % "3.0.0"
)

addSbtPlugin("com.itv" % "sbt-scalapact-nodeps" % "2.4.0")
addSbtPlugin("com.itv" % "sbt-scalapact-nodeps" % "3.0.0")
```

In your test suite, you will need the following imports:
Expand Down

0 comments on commit 97e4c98

Please sign in to comment.