Skip to content

Commit 93975f4

Browse files
committed
Bump versions
1 parent f7e7122 commit 93975f4

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

build.sbt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val pekkoConnectorKafkaVersion = "1.1.0"
1414
val kafkaVersion = "3.8.0"
1515
val activemqVersion = "5.18.5" // We are stuck with 5.x
1616
val artemisVersion = "2.37.0"
17-
val testContainersVersion = "1.20.1"
17+
val testContainersVersion = "1.20.4"
1818
val keycloakVersion = "26.0.1"
1919
val sttpVersion = "3.9.0"
2020
val influxdbVersion = "7.1.0"
@@ -98,7 +98,7 @@ libraryDependencies ++= Seq(
9898
"ca.uhn.hapi" % "hapi-structures-v25" % "2.3",
9999
"ca.uhn.hapi" % "hapi-structures-v281" % "2.3",
100100

101-
"org.apache.opennlp" % "opennlp-tools" % "2.3.3",
101+
"org.apache.opennlp" % "opennlp-tools" % "2.5.0",
102102

103103
"org.apache.httpcomponents.client5" % "httpclient5" % "5.4",
104104
"org.apache.httpcomponents.core5" % "httpcore5" % "5.3",
@@ -114,8 +114,6 @@ libraryDependencies ++= Seq(
114114
"com.github.blemale" %% "scaffeine" % "5.3.0",
115115
"ch.qos.logback" % "logback-classic" % "1.4.12",
116116

117-
"org.apache.tika" % "tika-core" % "2.9.2",
118-
119117
"org.testcontainers" % "testcontainers" % testContainersVersion,
120118
"org.testcontainers" % "elasticsearch" % testContainersVersion,
121119
"org.testcontainers" % "rabbitmq" % testContainersVersion,

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.10.5
1+
sbt.version=1.10.6

src/main/scala/alpakka/file/uploader/Uploader.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import org.apache.pekko.http.scaladsl.server.Route
1010
import org.apache.pekko.http.scaladsl.server.directives.FileInfo
1111
import org.apache.pekko.http.scaladsl.settings.ConnectionPoolSettings
1212
import org.apache.pekko.stream.scaladsl.FileIO
13-
import org.apache.tika.Tika
1413
import org.slf4j.{Logger, LoggerFactory}
1514

1615
import java.io.File
16+
import java.nio.file.Files
1717
import scala.concurrent.duration.*
1818
import scala.concurrent.{Await, ExecutionContextExecutor, Future}
1919
import scala.util.{Failure, Success}
@@ -104,8 +104,7 @@ class Uploader(system: ActorSystem) {
104104
}
105105

106106
def detectMediaType(file: File): ContentType = {
107-
val tika = new Tika()
108-
val detectedMediaType = tika.detect(file)
107+
val detectedMediaType = Files.probeContentType(file.toPath)
109108
logger.info(s"Detected media type: $detectedMediaType")
110109

111110
ContentType.parse(detectedMediaType) match {

src/main/scala/alpakka/sse_to_elasticsearch/SSEtoElasticsearch.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ object SSEtoElasticsearch extends App {
9393
// elasticsearchContainer.start()
9494
private val dockerImageNameOS = DockerImageName
9595
.parse("opensearchproject/opensearch")
96-
.withTag("1.3.16")
96+
.withTag("1.3.19")
9797
private val searchContainer = new OpensearchContainer(dockerImageNameOS)
9898
searchContainer.start()
9999

0 commit comments

Comments
 (0)