Skip to content

Commit 8e716d6

Browse files
committed
build: Pump kotlin 2.2.0 gradle 8.14
Also migrated to kotlin.time
1 parent 7c13e48 commit 8e716d6

11 files changed

Lines changed: 47 additions & 51 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ group = "org.cufy"
77
version = "2.0.0"
88

99
tasks.wrapper {
10-
gradleVersion = "8.2.1"
10+
gradleVersion = "8.14"
1111
}
1212

1313
subprojects {

gradle/libs.versions.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
[versions]
2-
kotlin = "2.1.0"
3-
kotlinx-serialization = "1.7.3"
4-
kotlinx-coroutines = "1.9.0"
5-
kotlinx-datetime = "0.6.1"
2+
kotlin = "2.2.0"
3+
kotlinx-serialization = "1.8.1"
64

7-
mongodb = "5.2.1"
8-
9-
mongokt = "0.1.2"
5+
mongodb = "5.5.1"
6+
mongokt = "0.1.6"
107

118
[libraries]
129
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }
13-
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinx-datetime" }
1410

1511
mongodb-sync = { module = "org.mongodb:mongodb-driver-sync", version.ref = "mongodb" }
1612
mongodb-reactivestreams = { module = "org.mongodb:mongodb-driver-reactivestreams", version.ref = "mongodb" }

gradle/wrapper/gradle-wrapper.jar

-19.5 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 14 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kotlin-js-store/yarn.lock

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@
6060
"@jridgewell/resolve-uri" "^3.1.0"
6161
"@jridgewell/sourcemap-codec" "^1.4.14"
6262

63-
"@js-joda/core@3.2.0":
64-
version "3.2.0"
65-
resolved "https://registry.yarnpkg.com/@js-joda/core/-/core-3.2.0.tgz#3e61e21b7b2b8a6be746df1335cf91d70db2a273"
66-
integrity sha512-PMqgJ0sw5B7FKb2d5bWYIoxjri+QlW/Pys7+Rw82jSH0QN3rB05jZ/VrrsUdh1w4+i2kw9JOejXGq/KhDOX7Kg==
67-
6863
"@socket.io/component-emitter@~3.1.0":
6964
version "3.1.0"
7065
resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz#96116f2a912e0c02817345b3c10751069920d553"
@@ -1768,11 +1763,6 @@ type-is@~1.6.18:
17681763
media-typer "0.3.0"
17691764
mime-types "~2.1.24"
17701765

1771-
typescript@5.5.4:
1772-
version "5.5.4"
1773-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.4.tgz#d9852d6c82bad2d2eda4fd74a5762a8f5909e9ba"
1774-
integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==
1775-
17761766
ua-parser-js@^0.7.30:
17771767
version "0.7.37"
17781768
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.37.tgz#e464e66dac2d33a7a1251d7d7a99d6157ec27832"

module-ped-bson/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ plugins {
66
}
77

88
kotlin {
9-
jvm {
10-
withJava()
9+
compilerOptions {
10+
optIn.add("kotlin.time.ExperimentalTime")
1111
}
12+
jvm()
1213
sourceSets {
1314
commonMain {
1415
dependencies {
1516
implementation(project(":ped-core"))
1617

1718
implementation(kotlin("stdlib"))
1819
implementation(libs.kotlinx.serialization.json)
19-
implementation(libs.kotlinx.datetime)
2020

2121
implementation(libs.bsonkt)
2222
}

module-ped-bson/src/commonMain/kotlin/Bson.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@
1515
*/
1616
package org.cufy.ped
1717

18-
import kotlinx.datetime.Instant
1918
import org.cufy.bson.*
19+
import org.cufy.ped.Bson.Boolean
20+
import org.cufy.ped.Bson.Decimal128
21+
import org.cufy.ped.Bson.Double
22+
import org.cufy.ped.Bson.ID
23+
import org.cufy.ped.Bson.Instant
24+
import org.cufy.ped.Bson.ObjectId
25+
import org.cufy.ped.Bson.String
2026

2127
@Deprecated("Use Bson object instead", ReplaceWith("Bson"))
2228
val Codecs get() = Bson

module-ped-bson/src/commonMain/kotlin/BsonCodecs.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
*/
1616
package org.cufy.ped
1717

18-
import kotlinx.datetime.Instant
1918
import org.cufy.bson.*
2019
import kotlin.Result.Companion.failure
2120
import kotlin.Result.Companion.success
21+
import kotlin.time.Instant
2222

2323
/* ============= ------------------ ============= */
2424

0 commit comments

Comments
 (0)