File tree Expand file tree Collapse file tree 6 files changed +80
-39
lines changed
backend/jvm/src/main/kotlin/dev/suresh
build-logic/src/main/kotlin/plugins Expand file tree Collapse file tree 6 files changed +80
-39
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import dev.suresh.config.SysConfig
5
5
import dev.suresh.plugins.configureHTTP
6
6
import dev.suresh.plugins.configureOTel
7
7
import dev.suresh.plugins.configureSecurity
8
- import dev.suresh.plugins.configureSerialization
9
8
import dev.suresh.plugins.custom.customPlugins
10
9
import dev.suresh.plugins.errorRoutes
11
10
import dev.suresh.routes.*
@@ -26,7 +25,6 @@ fun main(args: Array<String>) =
26
25
27
26
fun Application.module () {
28
27
configureHTTP()
29
- configureSerialization()
30
28
configureSecurity()
31
29
configureOTel()
32
30
errorRoutes()
Original file line number Diff line number Diff line change @@ -2,24 +2,31 @@ package dev.suresh.plugins
2
2
3
3
import BuildConfig
4
4
import io.ktor.http.*
5
+ import io.ktor.serialization.kotlinx.json.json
5
6
import io.ktor.server.application.*
6
7
import io.ktor.server.plugins.*
7
8
import io.ktor.server.plugins.autohead.*
8
9
import io.ktor.server.plugins.calllogging.*
9
10
import io.ktor.server.plugins.compression.*
11
+ import io.ktor.server.plugins.contentnegotiation.*
10
12
import io.ktor.server.plugins.cors.routing.*
11
13
import io.ktor.server.plugins.defaultheaders.*
12
14
import io.ktor.server.plugins.forwardedheaders.*
13
15
import io.ktor.server.plugins.hsts.*
14
16
import io.ktor.server.plugins.partialcontent.*
15
17
import io.ktor.server.request.*
18
+ import io.ktor.server.resources.Resources
16
19
import io.ktor.server.routing.*
17
20
import io.ktor.server.websocket.*
18
21
import kotlin.time.Duration.Companion.seconds
19
22
import kotlin.time.toJavaDuration
20
23
import org.slf4j.event.Level
21
24
22
25
fun Application.configureHTTP () {
26
+ install(Resources )
27
+
28
+ install(ContentNegotiation ) { json(dev.suresh.http.json) }
29
+
23
30
install(IgnoreTrailingSlash )
24
31
25
32
install(PartialContent )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -128,6 +128,9 @@ tasks {
128
128
// externalDocumentationLink(url = "https://api.ktor.io/")
129
129
}
130
130
131
+ // pluginsMapConfiguration = mapOf("org.jetbrains.dokka.base.DokkaBase" to """{ "templatesDir"
132
+ // : "${projectDir.toString().replace('\\','/')}/../dokka-templates" }""")
133
+
131
134
pluginConfiguration<DokkaBase , DokkaBaseConfiguration > {
132
135
footerMessage = " Copyright © 2024 suresh.dev"
133
136
homepageLink = githubRepo
Original file line number Diff line number Diff line change 1
1
[versions ]
2
2
java = " 24"
3
- kotlin = " 2.0.20-RC2 "
4
- kotlin-ksp = " 2.0.20-RC2- 1.0.24"
3
+ kotlin = " 2.0.20"
4
+ kotlin-ksp = " 2.0.20-1.0.24"
5
5
kotlin-jvmtarget = " 22"
6
6
kotlin-dsl-jvmtarget = " 21"
7
7
kotlin-api-version = " 2.0"
@@ -112,7 +112,7 @@ java-keychain = "1.1.0"
112
112
webjars-xterm = " 5.1.0"
113
113
arrow-suspendapp = " 0.4.1-alpha.5"
114
114
exposed = " 0.53.0"
115
- postgresql = " 42.7.3 "
115
+ postgresql = " 42.7.4 "
116
116
hikariCP = " 5.1.0"
117
117
h2 = " 2.3.232"
118
118
micrometer = " 1.13.2"
You can’t perform that action at this time.
0 commit comments