File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 11import org.gradle.api.tasks.PathSensitivity.NAME_ONLY
2- import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin.Companion.kotlinNodeJsRootExtension
3- import org.jetbrains.kotlin.gradle.targets.js.yarn.yarn
2+ import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsEnvSpec
3+ import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootEnvSpec
44
55plugins {
66 kotlin(" multiplatform" ) version " 2.1.21"
@@ -167,13 +167,17 @@ kotlin {
167167 }
168168}
169169
170- kotlinNodeJsRootExtension.version = " 20.18.1"
171-
172170// disable the KMP plugin adding custom repositories which is bad practice
173171// and promotes supply chain attacks
174172// instead we define the repositories ourselves in the settings script
175- kotlinNodeJsRootExtension.downloadBaseUrl = null
176- yarn.downloadBaseUrl = null
173+ configure<NodeJsEnvSpec > {
174+ version.set(" 20.18.1" )
175+ downloadBaseUrl.set(provider { null })
176+ }
177+
178+ configure<YarnRootEnvSpec > {
179+ downloadBaseUrl.set(provider { null })
180+ }
177181
178182distributions {
179183 main {
You can’t perform that action at this time.
0 commit comments