Skip to content

Commit

Permalink
Merge pull request #219 from ITV/squashing-pact-jvm
Browse files Browse the repository at this point in the history
don't try and squash pact-jvm contracts
  • Loading branch information
jbwheatley authored May 12, 2021
2 parents ce7c143 + 57949a3 commit c03d0b8
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ object ScalaPactTestCommand {
f.getName.split("_").take(2).mkString("_")
}.toList

val errorCount = {
val errorCount: Int = {
if (areScalaPactContracts)
groupedFileList.map { g =>
squashPactFiles(scalaPactSettings.giveOutputPath, g._2)
}.sum
else PactLogger.message("Expecting pact-jvm contracts, so not combining pact files.")
else {
PactLogger.message("Expecting pact-jvm contracts, so not combining pact files.")
0
}
}

PactLogger.message(("> " + groupedFileList.length.toString + " pacts found:").white.bold)
Expand Down

0 comments on commit c03d0b8

Please sign in to comment.