diff --git a/build.sbt b/build.sbt index fbaf1a8e2fa..b9c1fe77c02 100644 --- a/build.sbt +++ b/build.sbt @@ -1503,11 +1503,12 @@ lazy val liteK8sDeploymentManager = (project in lite("k8sDeploymentManager")) libraryDependencies ++= { Seq( // From version 4.0.0 onwards, skuber uses pekko instead of akka, so we need to migrate to pekko first - "io.github.hagay3" %% "skuber" % "3.2" exclude ("commons-logging", "commons-logging"), - "com.github.julien-truffaut" %% "monocle-core" % monocleV, - "com.github.julien-truffaut" %% "monocle-macro" % monocleV, - "com.typesafe.akka" %% "akka-slf4j" % akkaV % Test, - "org.wiremock" % "wiremock" % wireMockV % Test, + "io.github.hagay3" %% "skuber" % "3.2" exclude ("commons-logging", "commons-logging"), + "com.github.julien-truffaut" %% "monocle-core" % monocleV, + "com.github.julien-truffaut" %% "monocle-macro" % monocleV, + "com.typesafe.akka" %% "akka-slf4j" % akkaV % Test, + "org.wiremock" % "wiremock" % wireMockV % Test, + "com.softwaremill.sttp.client3" %% "async-http-client-backend-future" % sttpV % Test, ) }, buildAndImportRuntimeImageToK3d := { @@ -1541,20 +1542,20 @@ lazy val componentsApi = (project in file("components-api")) name := "nussknacker-components-api", libraryDependencies ++= { Seq( - "org.apache.commons" % "commons-text" % flinkCommonsTextV, - "org.typelevel" %% "cats-core" % catsV, - "com.beachape" %% "enumeratum" % enumeratumV, - "com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingV, - "com.typesafe" % "config" % configV, - "org.semver4j" % "semver4j" % "5.4.0", - "javax.validation" % "validation-api" % javaxValidationApiV, - "org.scala-lang.modules" %% "scala-collection-compat" % scalaCollectionsCompatV, - "com.iheart" %% "ficus" % ficusV, - "org.springframework" % "spring-core" % springV, - "org.springframework" % "spring-expression" % springV % Test, - "com.google.code.findbugs" % "jsr305" % findBugsV, - "com.softwaremill.sttp.client3" %% "async-http-client-backend-future" % sttpV, - "org.scalatestplus" %% s"scalacheck-$scalaCheckVshort" % scalaTestPlusV % Test + "org.apache.commons" % "commons-text" % flinkCommonsTextV, + "org.typelevel" %% "cats-core" % catsV, + "com.beachape" %% "enumeratum" % enumeratumV, + "com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingV, + "com.typesafe" % "config" % configV, + "org.semver4j" % "semver4j" % "5.4.0", + "javax.validation" % "validation-api" % javaxValidationApiV, + "org.scala-lang.modules" %% "scala-collection-compat" % scalaCollectionsCompatV, + "com.iheart" %% "ficus" % ficusV, + "org.springframework" % "spring-core" % springV, + "org.springframework" % "spring-expression" % springV % Test, + "com.google.code.findbugs" % "jsr305" % findBugsV, + "com.softwaremill.sttp.client3" %% "core" % sttpV, + "org.scalatestplus" %% s"scalacheck-$scalaCheckVshort" % scalaTestPlusV % Test ) } ) @@ -1686,9 +1687,10 @@ lazy val httpUtils = (project in utils("http-utils")) name := "nussknacker-http-utils", libraryDependencies ++= { Seq( - "com.softwaremill.sttp.client3" %% "core" % sttpV, - "com.softwaremill.sttp.client3" %% "json-common" % sttpV, - "com.softwaremill.sttp.client3" %% "circe" % sttpV, + "com.softwaremill.sttp.client3" %% "core" % sttpV, + "com.softwaremill.sttp.client3" %% "json-common" % sttpV, + "com.softwaremill.sttp.client3" %% "circe" % sttpV, + "com.softwaremill.sttp.client3" %% "async-http-client-backend-future" % sttpV, ) } ) diff --git a/docs/Changelog.md b/docs/Changelog.md index 3cfb9f12bf7..dbf54c66d36 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -14,7 +14,9 @@ * [#7116](https://github.com/TouK/nussknacker/pull/7116) Improve missing Flink Kafka Source / Sink TypeInformation * [#7123](https://github.com/TouK/nussknacker/pull/7123) Fix deployments for scenarios with dict editors after model reload * [#7162](https://github.com/TouK/nussknacker/pull/7162) Component API enhancement: ability to access information about - expression parts used in SpEL template + expression parts used in SpEL template +* [#7257](https://github.com/TouK/nussknacker/pull/7257) components-api module: Replaced wide dependency to `async-http-client-backend-future` + by the narrowest possible dependency to sttp's core ## 1.18 diff --git a/docs/MigrationGuide.md b/docs/MigrationGuide.md index 8c04b9c82d2..0b993c910d0 100644 --- a/docs/MigrationGuide.md +++ b/docs/MigrationGuide.md @@ -9,6 +9,8 @@ To see the biggest differences please consult the [changelog](Changelog.md). * [#7116](https://github.com/TouK/nussknacker/pull/7116) Improve missing Flink Kafka Source / Sink TypeInformation * We lost support for old ConsumerRecord constructor supported by Flink 1.14 / 1.15 * If you used Kafka source/sink components in your scenarios then state of these scenarios won't be restored +* [#7257](https://github.com/TouK/nussknacker/pull/7257) `components-api` doesn't depend on `async-http-client-backend-future`. + Instead, it depends on sttp's core. If your component rely on this, you should explicitly add dependency to `async-http-client-backend-future`. ## In version 1.18.0