Skip to content

Commit 56ba6b9

Browse files
aschulz90Andreas
andauthored
Update dependencies (#42)
Co-authored-by: Andreas <andreas.schulz@appstractive.com>
1 parent b8134e3 commit 56ba6b9

30 files changed

Lines changed: 4336 additions & 187 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Gradle:
3434

3535
```
3636
commonMain.dependencies {
37-
implementation("com.appstractive:jwt-kt:1.1.0")
37+
implementation("com.appstractive:jwt-kt:1.2.0")
3838
}
3939
```
4040

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010

1111
group = "com.appstractive"
1212

13-
version = "1.1.0"
13+
version = "1.2.0"
1414

1515
val localProps = Properties()
1616
val localPropertiesFile = rootProject.file("local.properties")

examples/ktor-server/build.gradle.kts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
1-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
1+
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
23

34
plugins {
4-
application
55
alias(libs.plugins.multiplatform)
66
alias(libs.plugins.kotlinx.serialization)
77
}
88

99
group = "com.appstractive.jwt"
1010

11-
version = "1.1.0"
11+
version = "1.2.0"
1212

1313
kotlin {
14-
jvm { compilerOptions { jvmTarget.set(JvmTarget.JVM_17) } }
14+
jvm {
15+
compilerOptions { jvmTarget.set(JvmTarget.JVM_17) }
16+
@OptIn(ExperimentalKotlinGradlePluginApi::class)
17+
binaries {
18+
executable {
19+
mainClass.set("com.appstractive.ApplicationKt")
20+
}
21+
}
22+
}
1523

1624
linuxX64().apply {
1725
binaries {
@@ -39,6 +47,12 @@ kotlin {
3947
}
4048

4149
sourceSets {
50+
all {
51+
languageSettings {
52+
optIn("kotlin.time.ExperimentalTime")
53+
}
54+
}
55+
4256
commonMain.dependencies {
4357
implementation(projects.jwtHmacKt)
4458
implementation(projects.ktorServerAuthJwt)
@@ -63,5 +77,3 @@ kotlin {
6377
mingwMain.dependencies {}
6478
}
6579
}
66-
67-
application { mainClass.set("com.appstractive.ApplicationKt") }

examples/ktor-server/src/commonMain/kotlin/com/appstractive/Application.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import io.ktor.server.request.*
1717
import io.ktor.server.response.*
1818
import io.ktor.server.routing.*
1919
import kotlin.time.Duration.Companion.minutes
20-
import kotlinx.datetime.Clock
20+
import kotlin.time.Clock
2121
import kotlinx.serialization.Serializable
2222
import kotlinx.serialization.json.jsonPrimitive
2323

gradle/libs.versions.toml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
[versions]
2-
kotlin = "2.1.10" # https://kotlinlang.org/docs/releases.html#release-details
3-
agp = "8.7.3" # https://developer.android.com/studio/releases/gradle-plugin
2+
kotlin = "2.2.0" # https://kotlinlang.org/docs/releases.html#release-details
3+
agp = "8.9.3" # https://developer.android.com/studio/releases/gradle-plugin
44

5-
compileSdk = "35"
5+
compileSdk = "36"
66
minSdk = "26"
77

88
ktor = "3.1.1"
99

10-
kotlin-datetime = "0.6.1"
11-
kotlin-serialization = "1.8.0"
12-
kotlin-coroutines = "1.10.1"
10+
kotlin-datetime = "0.7.0"
11+
kotlin-serialization = "1.9.0"
12+
kotlin-coroutines = "1.10.2"
1313

14-
cryptography = "0.4.0"
14+
cryptography = "0.5.0"
1515

1616
[libraries]
1717

1818
kotlin-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.ref = "kotlin-serialization" }
1919
kotlin-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlin-serialization" }
2020
kotlin-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlin-datetime" }
2121
kotlin-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlin-coroutines" }
22+
kotlinx-browser = { module = "org.jetbrains.kotlinx:kotlinx-browser", version = "0.3" }
2223

2324
ktor-serialization-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }
2425

@@ -39,24 +40,17 @@ ktor-server-auth = { module = "io.ktor:ktor-server-auth", version.ref = "ktor" }
3940
ktor-server-contentnegotiation = { module = "io.ktor:ktor-server-content-negotiation", version.ref = "ktor" }
4041

4142
crypto = { module = "dev.whyoleg.cryptography:cryptography-core", version.ref = "cryptography" }
42-
crypto-jdk = { module = "dev.whyoleg.cryptography:cryptography-provider-jdk", version.ref = "cryptography" }
43-
crypto-apple = { module = "dev.whyoleg.cryptography:cryptography-provider-apple", version.ref = "cryptography" }
44-
crypto-webcrypto = { module = "dev.whyoleg.cryptography:cryptography-provider-webcrypto", version.ref = "cryptography" }
45-
crypto-openssl3 = { module = "dev.whyoleg.cryptography:cryptography-provider-openssl3-prebuilt", version.ref = "cryptography" }
46-
crypto-pem = { module = "dev.whyoleg.cryptography:cryptography-serialization-pem", version.ref = "cryptography" }
47-
crypto-asn = { module = "dev.whyoleg.cryptography:cryptography-serialization-asn1", version.ref = "cryptography" }
43+
crypto-optimal = { module = "dev.whyoleg.cryptography:cryptography-provider-optimal", version.ref = "cryptography" }
4844

4945
test-kotlin = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
50-
test-kotlin-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version = "1.10.1" }
46+
test-kotlin-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlin-coroutines" }
5147
test-ktor-client-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }
5248

53-
junit = "junit:junit:4.13.2"
54-
5549
[plugins]
5650

5751
multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
5852
android-library = { id = "com.android.library", version.ref = "agp" }
5953
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
6054
nexus = { id = "io.github.gradle-nexus.publish-plugin", version = "1.3.0" }
6155
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
62-
kotlinx-binary-compatibility = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.16.3" }
56+
kotlinx-binary-compatibility = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.18.0" }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Aug 12 19:14:14 CEST 2024
1+
#Mon Jun 30 18:18:51 CEST 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

jwt-ecdsa/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Gradle:
2525

2626
```
2727
commonMain.dependencies {
28-
implementation("com.appstractive:jwt-kt:1.1.0")
29-
implementation("com.appstractive:jwt-ecdsa-kt:1.1.0")
28+
implementation("com.appstractive:jwt-kt:1.2.0")
29+
implementation("com.appstractive:jwt-ecdsa-kt:1.2.0")
3030
}
3131
```
3232

jwt-ecdsa/build.gradle.kts

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2-
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
1+
@file:OptIn(ExperimentalWasmDsl::class)
2+
3+
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
4+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
35

46
plugins {
57
alias(libs.plugins.multiplatform)
@@ -14,7 +16,7 @@ version = rootProject.version
1416

1517
kotlin {
1618
androidTarget {
17-
publishAllLibraryVariants()
19+
publishLibraryVariants("release")
1820
compilerOptions { jvmTarget.set(JvmTarget.JVM_17) }
1921
}
2022

@@ -24,8 +26,15 @@ kotlin {
2426
linuxArm64()
2527
linuxX64()
2628

27-
js()
28-
@OptIn(ExperimentalWasmDsl::class) wasmJs()
29+
js {
30+
browser()
31+
nodejs()
32+
}
33+
@OptIn(ExperimentalWasmDsl::class)
34+
wasmJs {
35+
browser()
36+
nodejs()
37+
}
2938

3039
listOf(
3140
iosX64(),
@@ -55,17 +64,7 @@ kotlin {
5564
implementation(libs.test.kotlin.coroutines)
5665
}
5766

58-
androidMain.dependencies { implementation(libs.crypto.jdk) }
59-
60-
jvmMain.dependencies { implementation(libs.crypto.jdk) }
61-
62-
appleMain.dependencies { implementation(libs.crypto.openssl3) }
63-
64-
linuxMain.dependencies { implementation(libs.crypto.openssl3) }
65-
66-
mingwMain.dependencies { implementation(libs.crypto.openssl3) }
67-
68-
jsMain.dependencies { implementation(libs.crypto.webcrypto) }
67+
wasmJsTest.dependencies { implementation(libs.kotlinx.browser) }
6968
}
7069
}
7170

jwt-hmac/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Gradle:
2525

2626
```
2727
commonMain.dependencies {
28-
implementation("com.appstractive:jwt-kt:1.1.0")
29-
implementation("com.appstractive:jwt-hmac-kt:1.1.0")
28+
implementation("com.appstractive:jwt-kt:1.2.0")
29+
implementation("com.appstractive:jwt-hmac-kt:1.2.0")
3030
}
3131
```
3232

jwt-hmac/build.gradle.kts

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2-
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
1+
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
2+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
33

44
plugins {
55
alias(libs.plugins.multiplatform)
@@ -14,7 +14,7 @@ version = rootProject.version
1414

1515
kotlin {
1616
androidTarget {
17-
publishAllLibraryVariants()
17+
publishLibraryVariants("release")
1818
compilerOptions { jvmTarget.set(JvmTarget.JVM_17) }
1919
}
2020

@@ -24,8 +24,15 @@ kotlin {
2424
linuxArm64()
2525
linuxX64()
2626

27-
js()
28-
@OptIn(ExperimentalWasmDsl::class) wasmJs()
27+
js {
28+
browser()
29+
nodejs()
30+
}
31+
@OptIn(ExperimentalWasmDsl::class)
32+
wasmJs {
33+
browser()
34+
nodejs()
35+
}
2936

3037
listOf(
3138
iosX64(),
@@ -55,17 +62,7 @@ kotlin {
5562
implementation(libs.test.kotlin.coroutines)
5663
}
5764

58-
androidMain.dependencies { implementation(libs.crypto.jdk) }
59-
60-
jvmMain.dependencies { implementation(libs.crypto.jdk) }
61-
62-
appleMain.dependencies { implementation(libs.crypto.openssl3) }
63-
64-
linuxMain.dependencies { implementation(libs.crypto.openssl3) }
65-
66-
mingwMain.dependencies { implementation(libs.crypto.openssl3) }
67-
68-
jsMain.dependencies { implementation(libs.crypto.webcrypto) }
65+
wasmJsTest.dependencies { implementation(libs.kotlinx.browser) }
6966
}
7067
}
7168

0 commit comments

Comments
 (0)