Skip to content

Commit

Permalink
Fix 2.0.x build (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
raniejade committed Aug 15, 2021
1 parent 5b15267 commit 9f17abf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Expand Up @@ -44,7 +44,7 @@ allprojects {
kotlinOptions {
// note: change this to 1.4 when upgrading to Kotlin 1.4
// KN can only be built using the current kotlin version.
apiVersion = "1.3"
apiVersion = "1.4"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion buildSrc/src/main/kotlin/Dependencies.kt
Expand Up @@ -17,7 +17,6 @@ object Dependencies {
val mockitoInline = "org.mockito:mockito-inline:2.23.4"

val kotlinCoroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"
val kotlinCoroutinesNative = "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.4.3"

val autoService = "com.google.auto.service:auto-service:1.0-rc4"
}
3 changes: 0 additions & 3 deletions spek-runtime/build.gradle.kts
Expand Up @@ -82,9 +82,6 @@ kotlin {

val nativeMain by creating {
dependsOn(commonMain)
dependencies {
implementation(Dependencies.kotlinCoroutinesNative)
}
}

linuxX64("linux") {
Expand Down
@@ -1,7 +1,7 @@
package org.spekframework.spek2.runtime

import kotlin.time.ExperimentalTime
import kotlin.time.MonoClock
import kotlin.time.TimeSource
import kotlin.time.measureTime

actual fun getGlobalTimeoutSetting(default: Long): Long {
Expand All @@ -18,7 +18,7 @@ actual fun isConcurrentExecutionEnabled(default: Boolean): Boolean {

@UseExperimental(ExperimentalTime::class)
actual fun measureTime(block: () -> Unit): Long {
return MonoClock.measureTime(block).inMilliseconds.toLong()
return TimeSource.Monotonic.measureTime(block).inMilliseconds.toLong()
}

actual fun isDebuggingEnabled(default: Boolean): Boolean {
Expand Down

0 comments on commit 9f17abf

Please sign in to comment.