Skip to content

Commit

Permalink
chore: bump ktor version to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaKin committed Oct 25, 2024
1 parent 5a81ee9 commit a586ed0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ val version: String by project
plugins {
kotlin("jvm") version "2.0.21"
kotlin("plugin.serialization") version "2.0.21"
id("io.ktor.plugin") version "2.3.12"
id("io.ktor.plugin") version "3.0.0"
}

group = "io.sakurasou"
Expand Down Expand Up @@ -68,9 +68,11 @@ dependencies {
implementation("io.github.smiley4:ktor-swagger-ui:$swaggerUIVersion")

// implementation("com.ucasoft.ktor:ktor-simple-cache-jvm:$ktorSimpleCacheVersion")
implementation("io.sakurasou.simple-cache:ktor-simple-cache-jvm:0.4.5")
implementation("com.ucasoft.ktor:ktor-simple-memory-cache-jvm:$ktorSimpleCacheVersion")
implementation("com.ucasoft.ktor:ktor-simple-redis-cache-jvm:$ktorSimpleCacheVersion")
// implementation("com.ucasoft.ktor:ktor-simple-memory-cache-jvm:$ktorSimpleCacheVersion")
// implementation("com.ucasoft.ktor:ktor-simple-redis-cache-jvm:$ktorSimpleCacheVersion")
implementation("io.sakurasou.ktor:ktor-simple-cache-jvm:$ktorSimpleCacheVersion")
implementation("io.sakurasou.ktor:ktor-simple-memory-cache-jvm:$ktorSimpleCacheVersion")
implementation("io.sakurasou.ktor:ktor-simple-redis-cache-jvm:$ktorSimpleCacheVersion")

implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
Expand Down
4 changes: 3 additions & 1 deletion app/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
kotlin.code.style=official
logbackVersion=1.5.6
kotlinLoggingVersion=7.0.0

ktorSimpleCacheVersion=0.4.7

exposedVersion=0.55.0
ktorSimpleCacheVersion=0.4.4
hikariVersion=5.1.0
postgresVersion=42.7.3
mySQLVersion=9.0.0
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/io/sakurasou/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ fun Application.mainModule() {
configureSerialization()
configureRouting()

if (environment.developmentMode) { swaggerModule() }
if (developmentMode) { swaggerModule() }
}
2 changes: 1 addition & 1 deletion app/src/main/kotlin/io/sakurasou/plugins/Monitoring.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.sakurasou.plugins

import io.ktor.server.application.*
import io.ktor.server.plugins.callloging.*
import io.ktor.server.plugins.calllogging.*
import io.ktor.server.request.*
import org.slf4j.event.Level

Expand Down

0 comments on commit a586ed0

Please sign in to comment.