From 09132d9c3bdca6b50bf8a9e6e017920f3303e0e0 Mon Sep 17 00:00:00 2001 From: Matthew Skinner Date: Fri, 29 Mar 2024 19:43:32 +1100 Subject: [PATCH] Bump Kotlin, okhttp, okio, and java-telegram-bot-api libraries (#16458) * update libs Signed-off-by: Matthew Skinner --- .../pom.xml | 2 +- bundles/org.openhab.binding.dbquery/pom.xml | 17 +++-- bundles/org.openhab.binding.jellyfin/pom.xml | 10 +-- bundles/org.openhab.binding.telegram/pom.xml | 22 ++++-- .../telegram/internal/TelegramHandler.java | 2 +- .../org.openhab.persistence.influxdb/pom.xml | 75 ++++++++++++------- bundles/org.openhab.voice.watsonstt/pom.xml | 12 +-- pom.xml | 5 +- 8 files changed, 93 insertions(+), 52 deletions(-) diff --git a/bundles/org.openhab.binding.bluetooth.generic/pom.xml b/bundles/org.openhab.binding.bluetooth.generic/pom.xml index bab65cd699b..5acc1cf6b34 100644 --- a/bundles/org.openhab.binding.bluetooth.generic/pom.xml +++ b/bundles/org.openhab.binding.bluetooth.generic/pom.xml @@ -42,7 +42,7 @@ com.google.code.gson gson - 2.9.1 + ${gson.version} diff --git a/bundles/org.openhab.binding.dbquery/pom.xml b/bundles/org.openhab.binding.dbquery/pom.xml index cc61071ee0e..8763a94f771 100644 --- a/bundles/org.openhab.binding.dbquery/pom.xml +++ b/bundles/org.openhab.binding.dbquery/pom.xml @@ -16,7 +16,7 @@ - !javax.annotation;!android.*,!com.android.*,!com.google.appengine.*,!dalvik.system,!kotlin.*,!kotlinx.*,!org.conscrypt,!sun.security.ssl,!org.apache.harmony.*,!org.apache.http.*,!rx.*,!org.msgpack.* + !javax.annotation;!android.*,!com.android.*,!com.google.appengine.*,!dalvik.system,!kotlin.*,!kotlinx.*,!org.conscrypt,!sun.security.ssl,!org.apache.harmony.*,!org.apache.http.*,!rx.*,!org.msgpack.*,!org.bouncycastle.*,!org.openjsse.* @@ -45,7 +45,7 @@ gson com.google.code.gson - 2.9.1 + ${gson.version} gson-fire @@ -55,7 +55,14 @@ okio com.squareup.okio - 1.17.3 + ${okio.version} + runtime + + + com.squareup.okio + okio-jvm + ${okio.version} + runtime commons-csv @@ -70,7 +77,7 @@ okhttp com.squareup.okhttp3 - 3.14.4 + ${okhttp3.version} retrofit @@ -85,7 +92,7 @@ logging-interceptor com.squareup.okhttp3 - 3.14.4 + ${okhttp3.version} rxjava diff --git a/bundles/org.openhab.binding.jellyfin/pom.xml b/bundles/org.openhab.binding.jellyfin/pom.xml index 4c0f7c855d8..4a5c0fcf21b 100644 --- a/bundles/org.openhab.binding.jellyfin/pom.xml +++ b/bundles/org.openhab.binding.jellyfin/pom.xml @@ -84,31 +84,31 @@ org.jetbrains.kotlin kotlin-stdlib - 1.7.21 + ${kotlin.version} compile org.jetbrains.kotlinx kotlinx-coroutines-core-jvm - 1.6.4 + 1.8.0 compile org.jetbrains.kotlinx kotlinx-serialization-core-jvm - 1.4.1 + 1.6.3 compile org.jetbrains.kotlinx kotlinx-serialization-json-jvm - 1.4.1 + 1.6.3 compile io.github.microutils kotlin-logging-jvm - 3.0.4 + 3.0.5 compile diff --git a/bundles/org.openhab.binding.telegram/pom.xml b/bundles/org.openhab.binding.telegram/pom.xml index 9b7546e128f..8815c0010f1 100644 --- a/bundles/org.openhab.binding.telegram/pom.xml +++ b/bundles/org.openhab.binding.telegram/pom.xml @@ -15,32 +15,44 @@ openHAB Add-ons :: Bundles :: Telegram Binding - !android.*,!com.android.org.*,!dalvik.*,!javax.annotation.meta.*,!org.apache.harmony.*,!org.conscrypt.*,!sun.* + !android.*,!com.android.org.*,!dalvik.*,!javax.annotation.meta.*,!org.apache.harmony.*,!org.conscrypt.*,!sun.*,!kotlin.*,!org.bouncycastle.*,!org.openjsse.* com.github.pengrad java-telegram-bot-api - 5.2.0 + 7.1.0 compile com.squareup.okhttp3 okhttp - ${okhttp.version} + ${okhttp3.version} compile com.squareup.okio okio - 1.15.0 + ${okio.version} + compile + + + com.squareup.okio + okio-jvm + ${okio.version} compile com.squareup.okhttp3 logging-interceptor - ${okhttp.version} + ${okhttp3.version} + compile + + + org.jetbrains.kotlin + kotlin-stdlib + ${kotlin.version} compile diff --git a/bundles/org.openhab.binding.telegram/src/main/java/org/openhab/binding/telegram/internal/TelegramHandler.java b/bundles/org.openhab.binding.telegram/src/main/java/org/openhab/binding/telegram/internal/TelegramHandler.java index a7ac3e04990..5b103ef55b8 100644 --- a/bundles/org.openhab.binding.telegram/src/main/java/org/openhab/binding/telegram/internal/TelegramHandler.java +++ b/bundles/org.openhab.binding.telegram/src/main/java/org/openhab/binding/telegram/internal/TelegramHandler.java @@ -360,7 +360,7 @@ public class TelegramHandler extends BaseThingHandler { } else if (message.photo() != null) { PhotoSize[] photoSizes = message.photo(); logger.trace("Received photos {}", Arrays.asList(photoSizes)); - Arrays.sort(photoSizes, Comparator.comparingInt(PhotoSize::fileSize).reversed()); + Arrays.sort(photoSizes, Comparator.comparingLong(PhotoSize::fileSize).reversed()); lastMessageURL = getFullDownloadUrl(photoSizes[0].fileId()); } else if (message.text() != null) { lastMessageText = message.text(); diff --git a/bundles/org.openhab.persistence.influxdb/pom.xml b/bundles/org.openhab.persistence.influxdb/pom.xml index 114840e8f86..aedb6a171c7 100644 --- a/bundles/org.openhab.persistence.influxdb/pom.xml +++ b/bundles/org.openhab.persistence.influxdb/pom.xml @@ -16,12 +16,12 @@ - !javax.annotation.*;!android.*,!com.android.*,!com.google.appengine.*,!dalvik.system,!kotlin.*,!kotlinx.*,!org.conscrypt,!sun.security.ssl,!org.apache.harmony.*,!org.apache.http.*,!rx.*,!org.msgpack.* + !javax.annotation.*;!android.*,!com.android.*,!com.google.appengine.*,!dalvik.system,!kotlin.*,!kotlinx.*,!org.conscrypt,!sun.security.ssl,!org.apache.harmony.*,!org.apache.http.*,!rx.*,!org.msgpack.*,!org.bouncycastle.*,!org.openjsse.* - 3.14.9 - 2.7.2 - 4.3.0 - 2.21 + 2.10.0 + 7.0.0 + 2.24 + 3.1.8 @@ -36,11 +36,6 @@ influxdb-client-utils ${influx2.version} - - com.squareup.retrofit2 - adapter-rxjava2 - ${retrofit.version} - com.influxdb influxdb-client-core @@ -51,6 +46,11 @@ flux-dsl ${influx2.version} + + com.influxdb + influxdb-client-flux + ${influx2.version} + com.squareup.retrofit2 @@ -67,6 +67,11 @@ com.squareup.retrofit2 ${retrofit.version} + + com.squareup.retrofit2 + adapter-rxjava3 + ${retrofit.version} + com.squareup.okhttp3 @@ -78,45 +83,59 @@ logging-interceptor ${okhttp3.version} + + com.squareup.okio + okio + ${okio.version} + runtime + + + com.squareup.okio + okio-jvm + ${okio.version} + runtime + + com.google.code.gson gson - 2.9.1 + ${gson.version} io.gsonfire gson-fire - 1.8.4 - - - com.squareup.okio - okio - 1.17.3 - - - org.apache.commons - commons-csv - 1.8 + 1.9.0 json org.json 20231013 + - rxjava - io.reactivex.rxjava2 - 2.2.19 + org.apache.commons + commons-csv + 1.10.0 reactive-streams org.reactivestreams - 1.0.3 + 1.0.4 swagger-annotations io.swagger - 1.6.1 + 1.6.13 + + + io.reactivex.rxjava3 + rxjava + ${io.reactivex.rxjava3} + + + org.jetbrains.kotlin + kotlin-stdlib + ${kotlin.version} @@ -134,7 +153,7 @@ com.squareup.moshi moshi - 1.8.0 + 1.15.1 diff --git a/bundles/org.openhab.voice.watsonstt/pom.xml b/bundles/org.openhab.voice.watsonstt/pom.xml index 8c78ad901d7..58aeeca4e35 100644 --- a/bundles/org.openhab.voice.watsonstt/pom.xml +++ b/bundles/org.openhab.voice.watsonstt/pom.xml @@ -39,37 +39,37 @@ com.squareup.okhttp3 okhttp - 4.11.0 + ${okhttp3.version} compile com.squareup.okhttp3 okhttp-urlconnection - 4.11.0 + ${okhttp3.version} compile org.jetbrains.kotlin kotlin-stdlib - 1.6.21 + ${kotlin.version} compile com.squareup.okio okio - 3.4.0 + ${okio.version} compile com.squareup.okio okio-jvm - 3.4.0 + ${okio.version} compile com.google.code.gson gson - 2.9.1 + ${gson.version} compile diff --git a/pom.xml b/pom.xml index 945c218e62f..55c0ef82c96 100644 --- a/pom.xml +++ b/pom.xml @@ -76,7 +76,10 @@ 5.14.0 4.4.5 4.1.104.Final - 3.14.9 + 4.12.0 + 3.9.0 + 2.9.1 + 1.9.23 0.15.0 2.0.7 2.38.0