CLOVIS
06/11/2021, 3:25 PMkotlin("js")
plugin, 1.5.10, Kotlin DSL, and I want to change the default timeout.
js {
browser {
testTask {
useKarma {
useChromiumHeadless()
timeout.set(??)
}
}
}
}
According to the Gradle documentation:
task myTask {
// java.time.Duration
timeout = Duration.ofMinutes(10)
}
However if I add write:
timeout.set(java.time.Duration.ofMinutes(10))
Then IntelliJ & Gradle complain with Unresolved reference: time
timeout
doesn't have any overloads that would accept kotlin.Duration
or even groovy.Duration
. Is it even possible currently to set the timeout with the Kotlin DSL?rnett
06/11/2021, 7:10 PMjava
as a property, for one of it's plugins, so it resolves to that instead of the package. Try importing java.time.Duration
CLOVIS
06/12/2021, 12:04 PM