File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 22
33kotlin = " 2.1.21"
44kotlinx-html = " 0.12.0"
5- kotlinx-datetime = " 0.6.2"
65kotlinx-io = " 0.7.0"
76coroutines = " 1.10.2"
87atomicfu = " 0.27.0"
@@ -125,8 +124,6 @@ kotlinx-serialization-protobuf = { module = "org.jetbrains.kotlinx:kotlinx-seria
125124
126125kotlinx-html = { module = " org.jetbrains.kotlinx:kotlinx-html" , version.ref = " kotlinx-html" }
127126
128- kotlinx-datetime = { module = " org.jetbrains.kotlinx:kotlinx-datetime" , version.ref = " kotlinx-datetime" }
129-
130127kotlinx-io-core = { module = " org.jetbrains.kotlinx:kotlinx-io-core" , version.ref = " kotlinx-io" }
131128
132129kotlinx-browser = { module = " org.jetbrains.kotlinx:kotlinx-browser" , version.ref = " kotlinx-browser" }
Original file line number Diff line number Diff line change 6666 " @jridgewell/resolve-uri" " ^3.1.0"
6767 " @jridgewell/sourcemap-codec" " ^1.4.14"
6868
69- 70- version "3.2.0"
71- resolved "https://registry.yarnpkg.com/@js-joda/core/-/core-3.2.0.tgz#3e61e21b7b2b8a6be746df1335cf91d70db2a273"
72- integrity sha512-PMqgJ0sw5B7FKb2d5bWYIoxjri+QlW/Pys7+Rw82jSH0QN3rB05jZ/VrrsUdh1w4+i2kw9JOejXGq/KhDOX7Kg==
73-
74697570 version "1.8.0"
7671 resolved "https://registry.yarnpkg.com/@puppeteer/browsers/-/browsers-1.8.0.tgz#fb6ee61de15e7f0e67737aea9f9bab1512dbd7d8"
Original file line number Diff line number Diff line change 22 * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33 */
44
5+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
56import java.time.Year
67
78description = " "
@@ -11,10 +12,10 @@ plugins {
1112}
1213
1314kotlin {
14- sourceSets {
15- commonMain.dependencies {
16- api(libs.kotlinx.datetime)
17- }
15+ compilerOptions {
16+ // For now set API version 2.1 only for this module
17+ // TODO KTOR-8637: Update API level for the whole project
18+ apiVersion = KotlinVersion . KOTLIN_2_1
1819 }
1920}
2021
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ package io.ktor.server.plugins.defaultheaders
66
77import io.ktor.http.*
88import io.ktor.server.application.*
9- import io.ktor.server.plugins.defaultheaders.DefaultHeadersConfig.*
109import io.ktor.server.response.*
1110import io.ktor.util.date.*
1211import io.ktor.utils.io.*
1312import kotlinx.atomicfu.atomic
13+ import kotlin.time.ExperimentalTime
1414
1515/* *
1616 * A configuration for the [DefaultHeaders] plugin.
@@ -37,7 +37,8 @@ public class DefaultHeadersConfig {
3737 *
3838 * [Report a problem](https://ktor.io/feedback/?fqname=io.ktor.server.plugins.defaultheaders.DefaultHeadersConfig.clock)
3939 */
40- public var clock: Clock = Clock { kotlinx.datetime.Clock .System .now().toEpochMilliseconds() }
40+ @OptIn(ExperimentalTime ::class )
41+ public var clock: Clock = Clock { kotlin.time.Clock .System .now().toEpochMilliseconds() }
4142
4243 /* *
4344 * Utility interface for obtaining timestamp.
You can’t perform that action at this time.
0 commit comments