From d7594c29e556f70309ce4ec9921a1bb977780568 Mon Sep 17 00:00:00 2001 From: kageru Date: Wed, 13 May 2020 17:45:24 +0200 Subject: [PATCH] update dependencies --- build.gradle.kts | 24 +++++++++---------- .../kotlin/moe/kageru/kagebot/TestUtil.kt | 3 ++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1519349..568880b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ apply { plugin("kotlin-kapt") } plugins { - kotlin("jvm") version "1.3.70" + kotlin("jvm") version "1.3.72" id("com.github.johnrengelman.shadow") version "5.1.0" apply true application } @@ -41,25 +41,25 @@ val test by tasks.getting(Test::class) { val arrowVersion = "0.10.3" dependencies { - implementation("com.uchuhimo:konf-core:0.20.0") - implementation("com.uchuhimo:konf-toml:0.20.0") + implementation("com.uchuhimo:konf-core:0.22.1") + implementation("com.uchuhimo:konf-toml:0.22.1") implementation(kotlin("stdlib-jdk8")) - implementation("org.javacord:javacord:3.0.5") - implementation("org.mapdb:mapdb:3.0.7") - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2") - implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.70") - implementation("com.fasterxml.jackson.core:jackson-annotations:2.10.0.pr3") + implementation("org.javacord:javacord:3.0.6") + implementation("org.mapdb:mapdb:3.0.8") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6") + implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.72") + implementation("com.fasterxml.jackson.core:jackson-annotations:2.11.0") implementation("io.arrow-kt:arrow-core:$arrowVersion") implementation("io.arrow-kt:arrow-syntax:$arrowVersion") testImplementation("io.kotlintest:kotlintest-runner-junit5:3.4.2") - testImplementation("io.mockk:mockk:1.9.3") + testImplementation("io.mockk:mockk:1.10.0") // these two are needed to access javacord internals (such as reading from sent embeds during tests) - testImplementation("org.javacord:javacord-core:3.0.4") - testImplementation("com.fasterxml.jackson.core:jackson-databind:2.10.0.pr3") + testImplementation("org.javacord:javacord-core:3.0.6") + testImplementation("com.fasterxml.jackson.core:jackson-databind:2.11.0") } tasks.withType { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "11" } diff --git a/src/test/kotlin/moe/kageru/kagebot/TestUtil.kt b/src/test/kotlin/moe/kageru/kagebot/TestUtil.kt index b6040d8..0915212 100644 --- a/src/test/kotlin/moe/kageru/kagebot/TestUtil.kt +++ b/src/test/kotlin/moe/kageru/kagebot/TestUtil.kt @@ -26,9 +26,10 @@ object TestUtil { private val TIMEOUT_ROLE = mockk { every { id } returns 123 } - val TEST_ROLE = mockk { + val TEST_ROLE: Role = mockk { every { id } returns 1 every { isManaged } returns false + every { name } returns "testrole" } fun mockMessage(