Skip to content
Merged
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ subprojects {
}

extensions.configure<io.gitlab.arturbosch.detekt.extensions.DetektExtension> {
toolVersion = "1.23.7"
toolVersion = "1.23.8"
// :samples is illustrative protocol code, not library code; relax
// size/complexity rules there while keeping naming + forbidden
// patterns enforced. See config/detekt/detekt-samples.yml.
Expand Down
36 changes: 18 additions & 18 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[versions]
kotlin = "2.0.21"
coroutines = "1.9.0"
serialization = "1.7.3"
datetime = "0.6.1"
ktor = "2.3.12"
sqlite = "3.46.1.3"
jose-jwt = "9.40"
kotlin-logging = "7.0.0"
slf4j = "2.0.16"
logback = "1.5.8"
json-schema-validator = "1.5.2"
clikt = "5.0.1"
kotest = "5.9.1"
ktlint = "12.1.1"
detekt = "1.23.7"
kover = "0.8.3"
dokka = "1.9.20"
binary-compatibility-validator = "0.16.3"
kotlin = "2.3.21"
coroutines = "1.11.0"
serialization = "1.11.0"
datetime = "0.6.2"
ktor = "3.5.0"
sqlite = "3.53.1.0"
jose-jwt = "10.9"
kotlin-logging = "8.0.03"
slf4j = "2.0.18"
logback = "1.5.32"
json-schema-validator = "3.0.2"
clikt = "5.1.0"
kotest = "6.1.11"
ktlint = "14.2.0"
detekt = "1.23.8"
kover = "0.9.8"
dokka = "2.2.0"
binary-compatibility-validator = "0.18.1"
nexus-publish = "2.0.0"

[libraries]
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
Expand Down
164 changes: 82 additions & 82 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kotlin {
allWarningsAsErrors = true
freeCompilerArgs.addAll(
"-Xjsr305=strict",
"-Xjvm-default=all",
"-jvm-default=enable",
)
}
}
Expand Down
8 changes: 2 additions & 6 deletions lib/src/main/kotlin/dev/arcp/store/EventLog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ import kotlinx.serialization.json.JsonElement
import java.nio.file.Path
import java.sql.Connection
import java.sql.DriverManager
import java.sql.ResultSet
import java.sql.SQLException
import java.util.concurrent.atomic.AtomicReference
import java.util.concurrent.atomic.AtomicBoolean

private val log = KotlinLogging.logger {}

Expand Down Expand Up @@ -249,7 +248,7 @@ public class EventLog private constructor(
/** Opens an event log backed by a file. */
public fun openFile(path: Path): EventLog = open("jdbc:sqlite:${path.toAbsolutePath()}")

private val driverLoaded = AtomicReference(false)
private val driverLoaded = AtomicBoolean(false)

private fun open(jdbcUrl: String): EventLog {
ensureDriver()
Expand All @@ -276,8 +275,5 @@ public class EventLog private constructor(
.forEach { stmt -> st.execute(stmt) }
}
}

@Suppress("UnusedPrivateMember", "unused")
private fun ResultSet.first(): Boolean = next()
}
}
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pluginManagement {
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}

dependencyResolutionManagement {
Expand Down
Loading