Update kotlin libs
This commit is contained in:
@@ -7,6 +7,7 @@ plugins {
|
||||
|
||||
dependencies {
|
||||
micronaut()
|
||||
runtimeOnly(libs.yaml)
|
||||
|
||||
testImplementation(libs.bundles.test)
|
||||
testRuntimeOnly(libs.slf4j.logback)
|
||||
|
||||
@@ -3,7 +3,7 @@ package be.simplenotes.config
|
||||
import io.micronaut.context.annotation.*
|
||||
import java.nio.file.Path
|
||||
import java.util.concurrent.TimeUnit
|
||||
import javax.inject.Singleton
|
||||
import jakarta.inject.Singleton
|
||||
|
||||
data class DataConfig(val dataDir: String)
|
||||
|
||||
@@ -36,7 +36,7 @@ class ConfigFactory {
|
||||
fun datasourceConfig(dataConfig: DataConfig) = DataSourceConfig(
|
||||
jdbcUrl = "jdbc:h2:" + Path.of(dataConfig.dataDir, "simplenotes").normalize().toAbsolutePath(),
|
||||
maximumPoolSize = 10,
|
||||
connectionTimeout = 1000
|
||||
connectionTimeout = 1000,
|
||||
)
|
||||
|
||||
@Singleton
|
||||
@@ -44,7 +44,7 @@ class ConfigFactory {
|
||||
fun testDatasourceConfig() = DataSourceConfig(
|
||||
jdbcUrl = "jdbc:h2:mem:regular;DB_CLOSE_DELAY=-1",
|
||||
maximumPoolSize = 2,
|
||||
connectionTimeout = 1000
|
||||
connectionTimeout = 1000,
|
||||
)
|
||||
|
||||
@Singleton
|
||||
@@ -54,5 +54,4 @@ class ConfigFactory {
|
||||
@Singleton
|
||||
@Requires(env = ["test"])
|
||||
fun testDataConfig() = DataConfig("/tmp")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user