Skip to content

Commit 4c33019

Browse files
author
Rival Abdrakhmanov
committed
Update libraries
1 parent 864f0a6 commit 4c33019

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet/src/main/kotlin/com/microsoft/azure/toolkit/intellij/legacy/function/toolingFeed/FunctionsToolingFeedService.kt

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,18 @@ import io.ktor.client.engine.cio.*
2525
import io.ktor.client.plugins.contentnegotiation.*
2626
import io.ktor.client.request.*
2727
import io.ktor.serialization.kotlinx.json.*
28-
import io.ktor.utils.io.ByteReadChannel
29-
import io.ktor.utils.io.core.isEmpty
30-
import io.ktor.utils.io.core.readBytes
31-
import io.ktor.utils.io.readRemaining
28+
import io.ktor.utils.io.*
3229
import kotlinx.coroutines.Dispatchers
3330
import kotlinx.coroutines.sync.Mutex
3431
import kotlinx.coroutines.sync.withLock
3532
import kotlinx.coroutines.withContext
33+
import kotlinx.io.readByteArray
3634
import kotlinx.serialization.ExperimentalSerializationApi
3735
import kotlinx.serialization.json.Json
3836
import java.io.File
3937
import java.nio.file.Path
4038
import java.nio.file.attribute.PosixFilePermission
41-
import kotlin.io.path.ExperimentalPathApi
42-
import kotlin.io.path.Path
43-
import kotlin.io.path.createDirectories
44-
import kotlin.io.path.deleteRecursively
45-
import kotlin.io.path.exists
46-
import kotlin.io.path.isExecutable
47-
import kotlin.io.path.setPosixFilePermissions
39+
import kotlin.io.path.*
4840

4941
@Service(Service.Level.APP)
5042
class FunctionsToolingFeedService : Disposable {
@@ -172,8 +164,8 @@ class FunctionsToolingFeedService : Disposable {
172164
val channel: ByteReadChannel = httpResponse.body()
173165
while (!channel.isClosedForRead) {
174166
val packet = channel.readRemaining(DEFAULT_BUFFER_SIZE.toLong())
175-
while (!packet.isEmpty) {
176-
val bytes = packet.readBytes()
167+
while (!packet.exhausted()) {
168+
val bytes = packet.readByteArray()
177169
tempFile.appendBytes(bytes)
178170
}
179171
}

PluginsAndFeatures/azure-toolkit-for-rider/gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
[versions]
22
# libraries
33
# https://search.maven.org/artifact/com.jetbrains.rd/rd-gen
4-
rdGen = "2024.3.1"
4+
rdGen = "2025.1.1"
55
opentest4j = "1.3.0"
66
azureToolkitLibs = "0.51.0"
77
azureToolkitHdinsightLibs = "0.1.1"
88
javaWebSocket = "1.5.1"
99
coroutines = "1.8.1"
10-
ktor = "2.3.12"
10+
ktor = "3.1.1"
1111
lombok = "1.18.24"
1212
snakeyaml = "2.2"
1313
plexusArchiver = "4.2.7"
1414
jedis = "3.6.3"
1515

1616
# plugins
17-
kotlin = "2.1.0"
17+
kotlin = "2.1.10"
1818
serialization = "1.8.0"
1919
changelog = "2.2.1"
2020
intelliJPlatform = "2.2.1"

0 commit comments

Comments
 (0)