Skip to content

Commit

Permalink
fix a few connectors, part1
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-alfers committed Sep 27, 2024
1 parent cb27a48 commit f1a8fbb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void publishAndConsumeRpcWithoutAutoAck() throws Exception {
.to(amqpSink)
.run(system);

List<ReadResult> probeResult = CollectionConverters.asJavaCollection(result.second().toStrict(Duration.create(3, TimeUnit.SECONDS))).stream().toList();
java.util.Collection<ReadResult> probeResult = CollectionConverters.asJavaCollection(result.second().toStrict(Duration.create(3, TimeUnit.SECONDS)));
assertEquals(
probeResult.stream().map(s -> s.bytes().utf8String()).collect(Collectors.toList()), input);
sourceToSink.shutdown();
Expand Down
18 changes: 13 additions & 5 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ object Dependencies {
// Sync with plugins.sbt
val AkkaGrpcBinaryVersion = "2.4"
// sync ignore prefix in scripts/link-validator.conf#L30
val AkkaHttpVersion = "10.6.3"
val AkkaHttpBinaryVersion = "10.6"
val AkkaHttpVersion = "10.7.0-M1"
val AkkaHttpBinaryVersion = VersionNumber(AkkaHttpVersion).numbers match { case Seq(major, minor, _*) => s"$major.$minor" }
val AlpakkaKafkaVersion = "7.0.0-M1"
val ScalaTestVersion = "3.2.19"
val TestContainersScalaTestVersion = "0.40.3" // pulls Testcontainers 1.16.2
Expand Down Expand Up @@ -91,6 +91,7 @@ object Dependencies {
val AwsLambda = Seq(
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-pki" % AkkaVersion,
"com.github.matsluni" %% "aws-spi-akka-http" % AwsSpiAkkaHttpVersion excludeAll // ApacheV2
(
ExclusionRule(organization = "com.typesafe.akka")
Expand Down Expand Up @@ -129,7 +130,8 @@ object Dependencies {
"io.reactivex" % "rxjava-reactive-streams" % "1.2.1", //ApacheV2
"com.typesafe.akka" %% "akka-discovery" % AkkaVersion % Provided, // Apache V2
"com.typesafe.play" %% "play-json" % "2.9.4" % Test, // Apache V2
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion % Test // Apache V2
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion % Test, // Apache V2
"com.typesafe.akka" %% "akka-pki" % AkkaVersion
)
)

Expand All @@ -154,14 +156,16 @@ object Dependencies {
ExclusionRule("software.amazon.awssdk", "apache-client"),
ExclusionRule("software.amazon.awssdk", "netty-nio-client")
),
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-pki" % AkkaVersion
)
)

val Elasticsearch = Seq(
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-pki" % AkkaVersion,
"org.slf4j" % "jcl-over-slf4j" % jclOverSlf4jVersion % Test
) ++ JacksonDatabindDependencies
)
Expand Down Expand Up @@ -231,6 +235,7 @@ object Dependencies {
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-jackson" % AkkaHttpVersion % Provided,
"com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-pki" % AkkaVersion,
"io.spray" %% "spray-json" % "1.3.6",
"com.fasterxml.jackson.core" % "jackson-annotations" % JacksonVersion,
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % JacksonVersion % Test, // used from `hoverfly-java`
Expand Down Expand Up @@ -482,7 +487,9 @@ object Dependencies {
ExclusionRule("software.amazon.awssdk", "apache-client"),
ExclusionRule("software.amazon.awssdk", "netty-nio-client")
),
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-pki" % AkkaVersion,
"org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2"
) ++ Mockito
)

Expand Down Expand Up @@ -519,6 +526,7 @@ object Dependencies {
(
ExclusionRule(organization = "com.typesafe.akka")
),
"org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2",
"software.amazon.awssdk" % "sqs" % AwsSdk2Version excludeAll // ApacheV2
(
ExclusionRule("software.amazon.awssdk", "apache-client"),
Expand Down

0 comments on commit f1a8fbb

Please sign in to comment.