Skip to content

Commit 6f5a2e8

Browse files
authored
Upgrade libraries now that Kotlin is upgraded (#295)
1 parent 7acd09d commit 6f5a2e8

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

build.gradle.kts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@ repositories {
2626
dependencies {
2727
// main dependencies
2828
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.20.1")
29-
implementation("io.arrow-kt:arrow-core:1.2.4")
29+
implementation("io.arrow-kt:arrow-core:2.2.0")
30+
implementation("io.arrow-kt:arrow-functions:2.2.0")
3031
implementation("org.apache.commons:commons-text:1.14.0")
3132
implementation("org.apache.commons:commons-math3:3.6.1")
3233
implementation("org.apache.commons:commons-geometry-core:1.0")
3334
implementation("org.apache.commons:commons-geometry-euclidean:1.0")
34-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
35+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
3536
implementation("tools.aqua:z3-turnkey:4.14.1")
3637
implementation("org.jgrapht:jgrapht-core:1.5.2")
3738

3839
// used for generating skeletons
39-
implementation("com.squareup:kotlinpoet:1.18.1")
40+
implementation("com.squareup:kotlinpoet:2.2.0")
4041

4142
// dependency injection library and annotation processing
4243
implementation("com.google.dagger:dagger:2.57.2")
@@ -45,8 +46,8 @@ dependencies {
4546

4647
// test libraries
4748
testImplementation(kotlin("test"))
48-
testImplementation("org.junit.jupiter:junit-jupiter:5.10.3")
49-
testImplementation("org.junit.platform:junit-platform-launcher:1.10.3")
49+
testImplementation("org.junit.jupiter:junit-jupiter:6.0.1")
50+
testImplementation("org.junit.platform:junit-platform-launcher:6.0.1")
5051
}
5152

5253
tasks.test {

src/main/kotlin/me/peckb/aoc/_2019/calendar/day18/Day18.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package me.peckb.aoc._2019.calendar.day18
22

3-
import arrow.core.mapNotNull
3+
import arrow.core.mapValuesNotNull
44
import me.peckb.aoc._2019.calendar.day18.Day18.Section.*
55
import me.peckb.aoc._2019.calendar.day18.Day18.Section.Source.*
66
import javax.inject.Inject
@@ -64,7 +64,7 @@ class Day18 @Inject constructor(
6464
}
6565

6666
private fun createPaths(caves: Map<Area, Section>): Map<Source, Map<Key, Route>> {
67-
val sourceLocations = caves.mapNotNull { (_, a) -> if (a is Source) a else null }
67+
val sourceLocations = caves.mapValuesNotNull { (_, a) -> if (a is Source) a else null }
6868

6969
val paths = mutableMapOf<Source, Map<Key, Route>>()
7070

0 commit comments

Comments
 (0)