diff --git a/build.sbt b/build.sbt index d18171f88..9548fbe5a 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,6 @@ -lazy val scalaVersion212: String = "2.12.14" -lazy val scalaVersion213: String = "2.13.6" -lazy val scalaVersion3: String = "3.0.1" +lazy val scalaVersion212: String = "2.12.16" +lazy val scalaVersion213: String = "2.13.8" +lazy val scalaVersion3: String = "3.1.3" lazy val supportedScalaVersions = List(scalaVersion212, scalaVersion213) ThisBuild / scalaVersion := scalaVersion212 diff --git a/example/consumer/.scalafmt.conf b/example/consumer/.scalafmt.conf index 8bc236e02..ba1671732 100644 --- a/example/consumer/.scalafmt.conf +++ b/example/consumer/.scalafmt.conf @@ -1,4 +1,5 @@ +version = 2.7.5 style = defaultWithAlign maxColumn = 120 rewrite.rules = [RedundantBraces,RedundantParens,PreferCurlyFors] -danglingParentheses = true \ No newline at end of file +danglingParentheses = true diff --git a/example/consumer/build.sbt b/example/consumer/build.sbt index ec69c9114..e18b083d5 100644 --- a/example/consumer/build.sbt +++ b/example/consumer/build.sbt @@ -6,7 +6,7 @@ name := "consumer" organization := "com.example" -scalaVersion := "2.13.6" +scalaVersion := "2.13.8" enablePlugins(ScalaPactPlugin) diff --git a/example/consumer/project/build.properties b/example/consumer/project/build.properties index 7a7e80d6d..d738b858c 100644 --- a/example/consumer/project/build.properties +++ b/example/consumer/project/build.properties @@ -1 +1 @@ -sbt.version = 1.5.5 +sbt.version = 1.7.1 diff --git a/example/deliver.sh b/example/deliver.sh index f2a2971e5..f887d5182 100644 --- a/example/deliver.sh +++ b/example/deliver.sh @@ -8,7 +8,7 @@ PACT_FILE="consumer/target/pacts/$PACT_NAME" if [ ! -f $PACT_FILE ] then echo "Expected pact file did not exist: $PACT_FILE" - echo "Have you run 'sbt pact-test' in the consumer project?" + echo "Have you run 'sbt pactTest' in the consumer project?" exit 1 fi diff --git a/example/provider/.scalafmt.conf b/example/provider/.scalafmt.conf index 8bc236e02..ba1671732 100644 --- a/example/provider/.scalafmt.conf +++ b/example/provider/.scalafmt.conf @@ -1,4 +1,5 @@ +version = 2.7.5 style = defaultWithAlign maxColumn = 120 rewrite.rules = [RedundantBraces,RedundantParens,PreferCurlyFors] -danglingParentheses = true \ No newline at end of file +danglingParentheses = true diff --git a/example/provider/build.sbt b/example/provider/build.sbt index 091c07588..fca47cfc3 100644 --- a/example/provider/build.sbt +++ b/example/provider/build.sbt @@ -4,7 +4,7 @@ name := "provider" version := "0.0.1" -scalaVersion := "2.13.6" +scalaVersion := "2.13.8" libraryDependencies ++= Seq( "org.http4s" %% "http4s-blaze-server" % "0.23.4", diff --git a/example/provider/delivered_pacts/scala-pact-consumer_scala-pact-provider.json b/example/provider/delivered_pacts/scala-pact-consumer_scala-pact-provider.json index c3db4a4f3..167d1a463 100644 --- a/example/provider/delivered_pacts/scala-pact-consumer_scala-pact-provider.json +++ b/example/provider/delivered_pacts/scala-pact-consumer_scala-pact-provider.json @@ -6,6 +6,28 @@ "name" : "scala-pact-consumer" }, "interactions" : [ + { + "providerState" : "Results: Bob, Fred, Harry", + "description" : "Fetching results", + "request" : { + "method" : "GET", + "path" : "/results" + }, + "response" : { + "status" : 200, + "headers" : { + "Pact" : "modifiedRequest" + }, + "body" : { + "count" : 3, + "results" : [ + "Bob", + "Fred", + "Harry" + ] + } + } + }, { "description" : "Fetching least secure auth token ever", "request" : { @@ -91,28 +113,6 @@ } } } - }, - { - "providerState" : "Results: Bob, Fred, Harry", - "description" : "Fetching results", - "request" : { - "method" : "GET", - "path" : "/results" - }, - "response" : { - "status" : 200, - "headers" : { - "Pact" : "modifiedRequest" - }, - "body" : { - "count" : 3, - "results" : [ - "Bob", - "Fred", - "Harry" - ] - } - } } ], "metadata" : { @@ -120,7 +120,7 @@ "version" : "2.0.0" }, "scala-pact" : { - "version" : "4.2.0" + "version" : "4.4.1-SNAPSHOT" } } } \ No newline at end of file diff --git a/example/provider/project/build.properties b/example/provider/project/build.properties index 7a7e80d6d..d738b858c 100644 --- a/example/provider/project/build.properties +++ b/example/provider/project/build.properties @@ -1 +1 @@ -sbt.version = 1.5.5 +sbt.version = 1.7.1 diff --git a/example/provider_pact-for-verification/.scalafmt.conf b/example/provider_pact-for-verification/.scalafmt.conf index 8bc236e02..ba1671732 100644 --- a/example/provider_pact-for-verification/.scalafmt.conf +++ b/example/provider_pact-for-verification/.scalafmt.conf @@ -1,4 +1,5 @@ +version = 2.7.5 style = defaultWithAlign maxColumn = 120 rewrite.rules = [RedundantBraces,RedundantParens,PreferCurlyFors] -danglingParentheses = true \ No newline at end of file +danglingParentheses = true diff --git a/example/provider_pact-for-verification/build.sbt b/example/provider_pact-for-verification/build.sbt index 9bb23c2ed..1104d24a1 100644 --- a/example/provider_pact-for-verification/build.sbt +++ b/example/provider_pact-for-verification/build.sbt @@ -4,7 +4,7 @@ organization := "com.example" name := "provider_pacts-for-verification" -scalaVersion := "2.13.6" +scalaVersion := "2.13.8" enablePlugins(ScalaPactPlugin) diff --git a/example/provider_pact-for-verification/project/build.properties b/example/provider_pact-for-verification/project/build.properties index 7a7e80d6d..d738b858c 100644 --- a/example/provider_pact-for-verification/project/build.properties +++ b/example/provider_pact-for-verification/project/build.properties @@ -1 +1 @@ -sbt.version = 1.5.5 +sbt.version = 1.7.1 diff --git a/example/provider_tests/.scalafmt.conf b/example/provider_tests/.scalafmt.conf index 8bc236e02..ba1671732 100644 --- a/example/provider_tests/.scalafmt.conf +++ b/example/provider_tests/.scalafmt.conf @@ -1,4 +1,5 @@ +version = 2.7.5 style = defaultWithAlign maxColumn = 120 rewrite.rules = [RedundantBraces,RedundantParens,PreferCurlyFors] -danglingParentheses = true \ No newline at end of file +danglingParentheses = true diff --git a/example/provider_tests/build.sbt b/example/provider_tests/build.sbt index e48846255..56021f3dc 100644 --- a/example/provider_tests/build.sbt +++ b/example/provider_tests/build.sbt @@ -4,7 +4,7 @@ organization := "com.example" name := "provider_tests" -scalaVersion := "2.13.6" +scalaVersion := "2.13.8" lazy val pactVersionFile: SettingKey[File] = settingKey[File]("location of scala-pact version for examples") pactVersionFile := baseDirectory.value.getParentFile.getParentFile / "version.sbt" diff --git a/example/provider_tests/delivered_pacts/scala-pact-consumer_scala-pact-provider.json b/example/provider_tests/delivered_pacts/scala-pact-consumer_scala-pact-provider.json index c3db4a4f3..167d1a463 100644 --- a/example/provider_tests/delivered_pacts/scala-pact-consumer_scala-pact-provider.json +++ b/example/provider_tests/delivered_pacts/scala-pact-consumer_scala-pact-provider.json @@ -6,6 +6,28 @@ "name" : "scala-pact-consumer" }, "interactions" : [ + { + "providerState" : "Results: Bob, Fred, Harry", + "description" : "Fetching results", + "request" : { + "method" : "GET", + "path" : "/results" + }, + "response" : { + "status" : 200, + "headers" : { + "Pact" : "modifiedRequest" + }, + "body" : { + "count" : 3, + "results" : [ + "Bob", + "Fred", + "Harry" + ] + } + } + }, { "description" : "Fetching least secure auth token ever", "request" : { @@ -91,28 +113,6 @@ } } } - }, - { - "providerState" : "Results: Bob, Fred, Harry", - "description" : "Fetching results", - "request" : { - "method" : "GET", - "path" : "/results" - }, - "response" : { - "status" : 200, - "headers" : { - "Pact" : "modifiedRequest" - }, - "body" : { - "count" : 3, - "results" : [ - "Bob", - "Fred", - "Harry" - ] - } - } } ], "metadata" : { @@ -120,7 +120,7 @@ "version" : "2.0.0" }, "scala-pact" : { - "version" : "4.2.0" + "version" : "4.4.1-SNAPSHOT" } } } \ No newline at end of file diff --git a/example/provider_tests/project/build.properties b/example/provider_tests/project/build.properties index 218101f1c..d738b858c 100644 --- a/example/provider_tests/project/build.properties +++ b/example/provider_tests/project/build.properties @@ -1 +1 @@ -sbt.version = 1.3.2 +sbt.version = 1.7.1 diff --git a/project/build.properties b/project/build.properties index 7a7e80d6d..d738b858c 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version = 1.5.5 +sbt.version = 1.7.1 diff --git a/project/plugins.sbt b/project/plugins.sbt index b17fff8ee..65c8734de 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -20,7 +20,7 @@ addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.2.0") addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13") -addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3") +addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") -addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.20") -addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.30") +addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.3.1") +addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1")