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 )
@@ -43,7 +45,7 @@ allprojects {
4345 // Only allow snapshot dependencies for non-release versions.
4446 // This would cause a build failure if attempting to make a release
4547 // while depending on a -SNAPSHOT version (such as core).
46- maven(" https://s01.oss. sonatype.org/content/repositories/ snapshots/" )
48+ maven(" https://central. sonatype.com/repository/maven- snapshots/" )
4749 }
4850 }
4951}
@@ -52,9 +54,16 @@ allprojects {
5254val CHECK_PUBLICATION = findProperty(" CHECK_PUBLICATION" ) != null
5355
5456plugins.withType<YarnPlugin > {
55- the<YarnRootExtension >().lockFileDirectory = rootDir.resolve(" .kotlin-js-store" )
56- if (CHECK_PUBLICATION ) {
57- the<YarnRootExtension >().yarnLockMismatchReport = YarnLockMismatchReport .NONE
57+ the<YarnRootExtension >().apply {
58+ lockFileDirectory = rootDir.resolve(" .kotlin-js-store" ).resolve(" js" )
59+ if (CHECK_PUBLICATION ) yarnLockMismatchReport = YarnLockMismatchReport .NONE
60+ }
61+ }
62+
63+ plugins.withType<WasmYarnPlugin > {
64+ the<WasmYarnRootExtension >().apply {
65+ lockFileDirectory = rootDir.resolve(" .kotlin-js-store" ).resolve(" wasm" )
66+ if (CHECK_PUBLICATION ) yarnLockMismatchReport = YarnLockMismatchReport .NONE
5867 }
5968}
6069
0 commit comments