Josh Eldridge
12/13/2022, 12:13 AM1.7.10
to 1.7.20
but the stack trace hasn't been super helpful into hunting down exactly why the CI can't find 1.7.20
attaching stack trace in thread:Josh Eldridge
12/13/2022, 12:13 AM> Configure project :shared
Kotlin Multiplatform Projects are an Alpha feature. See: <https://kotlinlang.org/docs/reference/evolution/components-stability.html>. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
Build was configured to prefer settings repositories over project repositories but repository 'ivy' was added by build file 'shared/build.gradle.kts'
Please wait while Kotlin/Native compiler 1.7.20 is being installed.
Download <https://download.jetbrains.com/kotlin/native/builds/releases/1.7.20/linux-x86_64/kotlin-native-prebuilt-linux-x86_64-1.7.20.tar.gz> (178.82 MB)
FAILURE: Build failed with an exception.
* Where:
Build file '/builds/hearsee/android/shared/build.gradle.kts' line: 15
* What went wrong:
Could not resolve all dependencies for configuration ':shared:detachedConfiguration3'.
The project declares repositories, effectively ignoring the repositories you have declared in the settings.
You can figure out how project repositories are declared by configuring your build to fail on project repositories.
See <https://docs.gradle.org/7.5/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories> for details.
> Could not find :kotlin-native-prebuilt-linux-x86_64:1.7.20.
Required by:
project :shared
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
BUILD FAILED in 1m 30s
Josh Eldridge
12/13/2022, 12:26 AM1.7.21
and did a couple other changes like removing repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
and bumping the gradle wrapper version from 7.5 back to 7.4. So not sure exactly which of these changes fixes this mysterious issue, but it's odd I keep seeing it specifically only in CI environments.tapchicoma
12/13/2022, 9:51 AMrepositoriesMode
allowing project defined repositories to work. Let me find related issuetapchicoma
12/13/2022, 9:53 AMJosh Eldridge
12/13/2022, 3:06 PMPREFER_SETTINGS
avoid the issues that FAIL_ON_PROJECT_REPOS
causes?Josh Eldridge
12/13/2022, 3:06 PMtapchicoma
12/13/2022, 3:07 PMPREFER_SETTINGS
docs:
If this mode is set, any repository declared directly in a project, either directly or via a plugin, will be ignored.
Josh Eldridge
12/13/2022, 3:08 PMtapchicoma
12/13/2022, 3:08 PMJosh Eldridge
12/13/2022, 3:08 PM