@@ -15,7 +15,7 @@ object Dependencies {
1515 val monocleV = " 3.2.0"
1616 val opencensusV = " 0.29.0"
1717 val munitCatsEffectV = " 1.0.7"
18- val pact4sV = " 0.16.2 "
18+ val pact4sV = " 0.16.3 "
1919 val commonsBeanUtilsV = " 1.11.0"
2020
2121 private val workbenchLibsHash = " 41ed6208-SNAP"
@@ -132,8 +132,11 @@ object Dependencies {
132132 val http4sCirce = " org.http4s" %% " http4s-circe" % http4sVersion
133133
134134 val guava : ModuleID = " com.google.guava" % " guava" % guavaV
135- val pact4sScalaTest = " io.github.jbwheatley" %% " pact4s-scalatest" % pact4sV % Test
136- val pact4sCirce = " io.github.jbwheatley" %% " pact4s-circe" % pact4sV
135+ // Exclude transitive netty from pact4s and add explicit newer netty in `Dependencies.scala`
136+ val pact4sScalaTest = " io.github.jbwheatley" %% " pact4s-scalatest" % pact4sV % Test excludeAll ExclusionRule (" io.netty" , " netty-codec-http" )
137+ val pact4sCirce = " io.github.jbwheatley" %% " pact4s-circe" % pact4sV excludeAll ExclusionRule (" io.netty" , " netty-codec-http" )
138+ // Add explicit netty dependency where appropriate (e.g. pact4sDependencies or core/http deps)
139+ val nettyCodecHttp : ModuleID = " io.netty" % " netty-codec-http" % " 4.2.2.Final"
137140 val commonsBeanUtils = " commons-beanutils" % " commons-beanutils" % commonsBeanUtilsV
138141 val okHttp = " com.squareup.okhttp3" % " okhttp" % " 4.12.0"
139142
@@ -253,12 +256,11 @@ object Dependencies {
253256 )
254257
255258 def excludeNettyCodecHttp2 = ExclusionRule (" io.netty" , " netty-codec-http2" )
256- def excludeIoPactPlugin = ExclusionRule (" io.pact.plugin.driver" )
257-
258259
259260 val pact4sDependencies = Seq (
260- pact4sScalaTest.excludeAll(excludeNettyCodecHttp2, excludeIoPactPlugin),
261- pact4sCirce.excludeAll(excludeNettyCodecHttp2, excludeIoPactPlugin),
261+ pact4sScalaTest.excludeAll(excludeNettyCodecHttp2),
262+ pact4sCirce.excludeAll(excludeNettyCodecHttp2),
263+ nettyCodecHttp,
262264 http4sEmberClient,
263265 http4sDsl,
264266 http4sEmberServer,
0 commit comments