Piotr Prus
01/05/2024, 5:58 AMrepositories {
maven {
name = "shared-kmp"
url = uri("<https://maven.pkg.github.com/tiltapp/shared-kmp>")
credentials {
username = project.property("GITHUB_PACKAGES_USERNAME") as String
password = project.property("GITHUB_PACKAGES_PASSWORD") as String
}
}
}
to my build.gradle.kts(:app)
, all other dependencies are trying to use github maven to download.
My settings.gradle
in the thread 🧵Piotr Prus
01/05/2024, 5:59 AMpluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url = uri("<https://jitpack.io>") }
}
}
rootProject.name = "Retro"
include(":app")
Piotr Prus
01/05/2024, 6:03 AMPiotr Prus
01/05/2024, 8:50 AMRequired by:
project :app
Cause 33: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.accompanist:accompanist-swiperefresh:0.32.0.
Searched in the following locations:
- <https://maven.pkg.github.com/tiltapp/shared-kmp/com/google/accompanist/accompanist-swiperefresh/0.32.0/accompanist-swiperefresh-0.32.0.pom>
Jacob Ras
01/05/2024, 9:56 AMmavenCentral()
and google()
. At least, the error suggests that (seeing the locations it searched being just the shared-kmp host)Piotr Prus
01/05/2024, 10:18 AMsettings.gradle.kts
for the reference. If I do not have this custom repo added, everythings works as expected.Jacob Ras
01/05/2024, 10:39 AMJacob Ras
01/05/2024, 10:40 AMPiotr Prus
01/05/2024, 10:43 AMdependencyResolutionManagement
from settings.gradle and updated root build.gradle to include them. Now it works.
Thanks