Some dependency upgrades

parent 0700df2b
Pipeline #7568 passed with stages
in 7 minutes and 22 seconds
......@@ -17,7 +17,7 @@ repositories {
maven { url = uri("https://dl.bintray.com/kotlin/kotlinx") }
}
val ktorVersion = "1.1.4"
val ktorVersion = "1.2.1"
val junitVersion = "5.4.2"
val aspectjVersion = "1.9.4"
......@@ -32,7 +32,7 @@ dependencies {
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.2.1")
// Kotlin serialization
runtimeOnly("org.jetbrains.kotlinx", "kotlinx-serialization-runtime", "0.11.0")
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-runtime", "0.11.0")
// OpenJFX
if (JavaVersion.current().isJava11Compatible) {
......@@ -59,7 +59,7 @@ dependencies {
implementation("io.ktor", "ktor-freemarker", ktorVersion)
// http4k WebSocket client library
implementation("org.http4k", "http4k-client-websocket", "3.146.0")
implementation("org.http4k", "http4k-client-websocket", "3.154.1")
// AspectJ runtime
runtimeOnly("org.aspectj", "aspectjrt", aspectjVersion)
......@@ -71,7 +71,7 @@ dependencies {
testImplementation("org.junit.jupiter", "junit-jupiter-params", junitVersion)
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", junitVersion)
testImplementation("org.mockito", "mockito-junit-jupiter", "2.27.0")
testImplementation("org.mockito", "mockito-junit-jupiter", "2.28.2")
}
version = "2.0.3"
......
......@@ -38,6 +38,8 @@ object PseuCoShare : FileSharer {
*/
private val client = HttpClient(Apache)
fun close() = client.close()
/**
* Upload a file to the [pseuCo.com](https://pseuco.com) sharing API.
* The file is only kept temporary.
......
package fxGui
import com.pseuco.PseuCoFileSharer
import com.pseuco.api.PseuCoShare
import com.pseuco.websocket.PseuCoWebSocket
import config.Config
import fxGui.main.MainPane
......@@ -146,6 +147,8 @@ internal class Main : Application() {
override fun stop() {
super.stop()
PseuCoShare.close()
VersionCheck.close()
PseuCoWebSocket.stop()
CompanionWebApp.stop()
}
......
......@@ -81,6 +81,8 @@ object VersionCheck {
}
}
fun close() = client.close()
/**
* A list of available [Version]s. Set by [fetchVersions].
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment