anyone having trouble with the new Duration API in...
# announcements
p
anyone having trouble with the new Duration API in 1.5?
Expression 'seconds' cannot be invoked as a function. The function 'invoke()' is not found
… literally looking at the seconds function in the Duration companion object 😳
Copy code
❯ gradle -q dependencies --configuration compileClasspath  | grep kotlin-stdlib-common
|         \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.5.0
|    |         \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.5.0
|    \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.31 -> 1.5.0
|         \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.30 -> 1.5.0
|         +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.30 -> 1.5.0
|    |         +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.32 -> 1.5.0
|    |                   +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.32 -> 1.5.0
|    |         +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.32 -> 1.5.0
|    |                   |         +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.32 -> 1.5.0
|    |                   +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.32 -> 1.5.0
silly me - forgot to change the kotlin language version in
build.gradle.kts