File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed
src/main/kotlin/dev/silenium/libs/flows/impl Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2
+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
3
+
1
4
plugins {
2
- kotlin(" jvm" ) version " 2.0.0"
3
- id(" org.jetbrains.kotlinx.atomicfu" ) version " 0.25.0"
5
+ kotlin(" jvm" ) version " 2.0.10"
4
6
}
5
7
6
8
group = " dev.silenium.playground"
@@ -15,12 +17,9 @@ dependencies {
15
17
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines " )
16
18
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-debug:$coroutines " )
17
19
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$coroutines " )
18
- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-jdk9:$coroutines " )
19
20
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-reactive:$coroutines " )
20
21
21
- implementation(" org.jetbrains.kotlinx:atomicfu:0.25.0" )
22
-
23
- val kotest = " 5.9.0"
22
+ val kotest = " 5.9.1"
24
23
testImplementation(" io.kotest:kotest-runner-junit5-jvm:$kotest " )
25
24
testImplementation(" io.kotest:kotest-assertions-core-jvm:$kotest " )
26
25
testImplementation(" io.kotest:kotest-property-jvm:$kotest " )
@@ -30,6 +29,20 @@ tasks.test {
30
29
useJUnitPlatform()
31
30
}
32
31
32
+ tasks.compileKotlin {
33
+ compilerOptions {
34
+ jvmTarget = JvmTarget .JVM_1_8
35
+ languageVersion = KotlinVersion .KOTLIN_1_7
36
+ }
37
+ }
38
+
39
+ tasks.compileTestKotlin {
40
+ compilerOptions {
41
+ jvmTarget = JvmTarget .JVM_1_8
42
+ languageVersion = KotlinVersion .DEFAULT
43
+ }
44
+ }
45
+
33
46
kotlin {
34
- jvmToolchain(11 )
47
+ jvmToolchain(8 )
35
48
}
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ internal class FlowGraphImpl(private val coroutineScope: CoroutineScope) :
91
91
elements.forEach(AutoCloseable ::close)
92
92
}
93
93
94
- data object CoroutineContextKey : CoroutineContext .Key <CoroutineContextElement >
94
+ object CoroutineContextKey : CoroutineContext.Key<CoroutineContextElement>
95
95
data class CoroutineContextElement (
96
96
val flowGraph : FlowGraph ,
97
97
override val key : CoroutineContext .Key <* > = CoroutineContextKey
You can’t perform that action at this time.
0 commit comments