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 1
1
import 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
4
4
5
5
plugins {
6
6
kotlin(" multiplatform" ) version " 2.1.21"
@@ -167,13 +167,17 @@ kotlin {
167
167
}
168
168
}
169
169
170
- kotlinNodeJsRootExtension.version = " 20.18.1"
171
-
172
170
// disable the KMP plugin adding custom repositories which is bad practice
173
171
// and promotes supply chain attacks
174
172
// 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
+ }
177
181
178
182
distributions {
179
183
main {
You can’t perform that action at this time.
0 commit comments