1
1
plugins {
2
- id ' org.jetbrains.kotlin.jvm' version ' 1.7.21 '
3
- id ' org.jetbrains.kotlin.plugin.serialization' version ' 1.7.21 '
2
+ id ' org.jetbrains.kotlin.jvm' version ' 2.1.10 '
3
+ id ' org.jetbrains.kotlin.plugin.serialization' version ' 2.1.10 '
4
4
}
5
5
6
6
group ' intro-coroutines'
@@ -13,42 +13,35 @@ repositories {
13
13
dependencies {
14
14
implementation " org.jetbrains.kotlin:kotlin-stdlib"
15
15
implementation " org.jetbrains.kotlin:kotlin-reflect"
16
- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1 " )
16
+ implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0 " )
17
17
18
- def coroutines_version = ' 1.6.4 '
18
+ def coroutines_version = ' 1.10.1 '
19
19
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version "
20
20
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-swing:$coroutines_version "
21
21
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutines_version "
22
22
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:$coroutines_version "
23
23
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-debug:$coroutines_version "
24
24
25
- implementation ' ch.qos.logback:logback-classic:1.4.5 '
25
+ implementation ' ch.qos.logback:logback-classic:1.5.16 '
26
26
27
- def retrofit_version = ' 2.9 .0'
27
+ def retrofit_version = ' 2.11 .0'
28
28
implementation " com.squareup.retrofit2:retrofit:$retrofit_version "
29
29
implementation " com.squareup.retrofit2:retrofit-mock:$retrofit_version "
30
- implementation " com.jakewharton.retrofit: retrofit2-kotlinx-serialization-converter:0.8.0 "
31
- implementation ' com.squareup.okhttp3:okhttp:4.10 .0'
30
+ implementation " com.squareup. retrofit2:converter -kotlinx-serialization: $r etrofit_version "
31
+ implementation ' com.squareup.okhttp3:okhttp:4.12 .0'
32
32
33
- implementation ' io.reactivex.rxjava2 :rxjava:2.2.21 '
34
- implementation ' io.reactivex.rxjava2 :rxkotlin:2.4.0 '
35
- implementation " com.squareup.retrofit2:adapter-rxjava2 :$retrofit_version "
33
+ implementation ' io.reactivex.rxjava3 :rxjava:3.1.10 '
34
+ implementation ' io.reactivex.rxjava3 :rxkotlin:3.0.1 '
35
+ implementation " com.squareup.retrofit2:adapter-rxjava3 :$retrofit_version "
36
36
37
37
testImplementation ' junit:junit:4.13.2'
38
38
testImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version "
39
39
}
40
40
41
- compileKotlin {
42
- kotlinOptions {
43
- jvmTarget = " 1.8"
44
- freeCompilerArgs + = " -opt-in=kotlin.RequiresOptIn"
45
- }
46
- }
47
-
48
- compileTestKotlin {
49
- kotlinOptions {
50
- jvmTarget = " 1.8"
51
- freeCompilerArgs + = " -opt-in=kotlin.RequiresOptIn"
41
+ kotlin {
42
+ jvmToolchain(21 )
43
+ compilerOptions {
44
+ freeCompilerArgs. add(" -opt-in=kotlin.RequiresOptIn" )
52
45
}
53
46
}
54
47
0 commit comments