Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Friday night upgrades #236

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion example/consumer/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version = 2.7.5
style = defaultWithAlign
maxColumn = 120
rewrite.rules = [RedundantBraces,RedundantParens,PreferCurlyFors]
danglingParentheses = true
danglingParentheses = true
2 changes: 1 addition & 1 deletion example/consumer/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name := "consumer"

organization := "com.example"

scalaVersion := "2.13.6"
scalaVersion := "2.13.8"

enablePlugins(ScalaPactPlugin)

Expand Down
2 changes: 1 addition & 1 deletion example/consumer/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.5.5
sbt.version = 1.7.1
2 changes: 1 addition & 1 deletion example/deliver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion example/provider/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version = 2.7.5
style = defaultWithAlign
maxColumn = 120
rewrite.rules = [RedundantBraces,RedundantParens,PreferCurlyFors]
danglingParentheses = true
danglingParentheses = true
2 changes: 1 addition & 1 deletion example/provider/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" : {
Expand Down Expand Up @@ -91,36 +113,14 @@
}
}
}
},
{
"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" : {
"pactSpecification" : {
"version" : "2.0.0"
},
"scala-pact" : {
"version" : "4.2.0"
"version" : "4.4.1-SNAPSHOT"
}
}
}
2 changes: 1 addition & 1 deletion example/provider/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.5.5
sbt.version = 1.7.1
3 changes: 2 additions & 1 deletion example/provider_pact-for-verification/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version = 2.7.5
style = defaultWithAlign
maxColumn = 120
rewrite.rules = [RedundantBraces,RedundantParens,PreferCurlyFors]
danglingParentheses = true
danglingParentheses = true
2 changes: 1 addition & 1 deletion example/provider_pact-for-verification/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "com.example"

name := "provider_pacts-for-verification"

scalaVersion := "2.13.6"
scalaVersion := "2.13.8"

enablePlugins(ScalaPactPlugin)

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.5.5
sbt.version = 1.7.1
3 changes: 2 additions & 1 deletion example/provider_tests/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version = 2.7.5
style = defaultWithAlign
maxColumn = 120
rewrite.rules = [RedundantBraces,RedundantParens,PreferCurlyFors]
danglingParentheses = true
danglingParentheses = true
2 changes: 1 addition & 1 deletion example/provider_tests/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" : {
Expand Down Expand Up @@ -91,36 +113,14 @@
}
}
}
},
{
"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" : {
"pactSpecification" : {
"version" : "2.0.0"
},
"scala-pact" : {
"version" : "4.2.0"
"version" : "4.4.1-SNAPSHOT"
}
}
}
2 changes: 1 addition & 1 deletion example/provider_tests/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.3.2
sbt.version = 1.7.1
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.5.5
sbt.version = 1.7.1
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")