1616import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnLockMismatchReport
1717import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
1818import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
19+ import org.jetbrains.kotlin.gradle.targets.wasm.yarn.WasmYarnPlugin
20+ import org.jetbrains.kotlin.gradle.targets.wasm.yarn.WasmYarnRootExtension
1921
2022plugins {
2123 alias(libs.plugins.android.library) apply (false )
@@ -38,7 +40,7 @@ allprojects {
3840 // Only allow snapshot dependencies for non-release versions.
3941 // This would cause a build failure if attempting to make a release
4042 // while depending on a -SNAPSHOT version (such as core).
41- maven(" https://s01.oss. sonatype.org/content/repositories/ snapshots/" )
43+ maven(" https://central. sonatype.com/repository/maven- snapshots/" )
4244 }
4345 }
4446}
@@ -47,9 +49,16 @@ allprojects {
4749val CHECK_PUBLICATION = findProperty(" CHECK_PUBLICATION" ) != null
4850
4951plugins.withType<YarnPlugin > {
50- the<YarnRootExtension >().lockFileDirectory = rootDir.resolve(" .kotlin-js-store" )
51- if (CHECK_PUBLICATION ) {
52- the<YarnRootExtension >().yarnLockMismatchReport = YarnLockMismatchReport .NONE
52+ the<YarnRootExtension >().apply {
53+ lockFileDirectory = rootDir.resolve(" .kotlin-js-store" ).resolve(" js" )
54+ if (CHECK_PUBLICATION ) yarnLockMismatchReport = YarnLockMismatchReport .NONE
55+ }
56+ }
57+
58+ plugins.withType<WasmYarnPlugin > {
59+ the<WasmYarnRootExtension >().apply {
60+ lockFileDirectory = rootDir.resolve(" .kotlin-js-store" ).resolve(" wasm" )
61+ if (CHECK_PUBLICATION ) yarnLockMismatchReport = YarnLockMismatchReport .NONE
5362 }
5463}
5564
0 commit comments