John O'Reilly
02/12/2024, 2:19 PMsettings.gradle.kts
for an amper based project.....trying to pull in some Wasm specific dependencies
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
maven("<https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental>")
}
}
John O'Reilly
02/12/2024, 3:19 PMrepositories:
- <https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental>
John O'Reilly
02/12/2024, 3:34 PM> Could not find io.ktor:ktor-client-core:3.0.0-wasm2.
Searched in the following locations:
- <https://dl.google.com/dl/android/maven2/io/ktor/ktor-client-core/3.0.0-wasm2/ktor-client-core-3.0.0-wasm2.pom>
- <https://jcenter.bintray.com/io/ktor/ktor-client-core/3.0.0-wasm2/ktor-client-core-3.0.0-wasm2.pom>
- <https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/io/ktor/ktor-client-core/3.0.0-wasm2/ktor-client-core-3.0.0-wasm2.pom>
- <https://plugins.gradle.org/m2/io/ktor/ktor-client-core/3.0.0-wasm2/ktor-client-core-3.0.0-wasm2.pom>
- <https://maven.pkg.jetbrains.space/public/p/compose/dev/io/ktor/ktor-client-core/3.0.0-wasm2/ktor-client-core-3.0.0-wasm2.pom>
Joffrey
02/12/2024, 3:48 PMdependencyResolutionManagement
declaration from your initial post in your settings.gradle.kts
, even when using Amper. Or are you asking about an Amper-native way to declare the same thing?Joffrey
02/12/2024, 3:50 PMrepositories
should be the way to go, indeed (and you could use a template to share them between modules). If that doesn't work, it might be a bugJohn O'Reilly
02/12/2024, 3:51 PMJoffrey
02/12/2024, 3:51 PMJoffrey
02/13/2024, 4:44 PMdependencyResolutionManagement
and with repositories
in a single Amper module file. I'm still investigating the exact cause, though. I will keep you posted.Joffrey
02/13/2024, 4:48 PMrepositories
in the module.yaml
files of all involved modules solved the problem for me. It also works when doing this via a template, and applying the template to the relevant module.yaml
files.