grahamborland
07/19/2025, 1:27 PMrootProject.the<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension>().download = false
The error is
Using 'download: Boolean' is an error. This property has been migrated to support the Provider API. Use corresponding spec (extension with name *Spec) instead.
Can someone help me figure out what the Spec equivalent is? I’m having trouble finding it.turansky
07/19/2025, 1:30 PM.downloadProperty = false
?turansky
07/19/2025, 1:30 PM.downloadProperty.set(false)
Didier Villevalois
07/19/2025, 1:54 PMYarnRootEnvSpec
and NodeJsEnvSpec
.
So you should do:
rootProject.plugins.withType<YarnPlugin> {
rootProject.the<YarnRootEnvSpec>().download = false
}
rootProject.plugins.withType<NodeJsRootPlugin> {
rootProject.the<NodeJsEnvSpec>().download = false
}