Skip to content

Build Failure: Unable to resolve org.smartregister SNAPSHOT dependencies #3819

@Chance-Obondo

Description

@Chance-Obondo

Build Failure: Unable to resolve org.smartregister SNAPSHOT dependencies
Description
The build for fhircore-android is failing across multiple modules (:engine, :geowidget, and :quest) during the dependency resolution phase. Specifically, several org.smartregister SNAPSHOT artifacts cannot be found in the configured repositories (Sonatype, Maven Central, Mapbox, etc.).

This is preventing the execution of tasks such as mergeDebugNonProxyUnitTestAssets and mergeOpensrpDebugNonProxyResources.

Steps to Reproduce
Clone the repository.

Run ./gradlew clean assembleDebug or attempt to sync the project in Android Studio.

The build fails with "Could not find org.smartregister:[artifact]:[version]-SNAPSHOT".

Error Logs
The following artifacts are failing to resolve across all modules:

Plaintext

* What went wrong:
Execution failed for task ':engine:mergeDebugNonProxyUnitTestAssets'.
> Could not resolve all files for configuration ':engine:debugNonProxyUnitTestRuntimeClasspath'.
   > Could not find org.smartregister:knowledge:0.1.0-beta01-preview1-SNAPSHOT.
   > Could not find org.smartregister:p2p-lib:0.6.11-SNAPSHOT.
   > Could not find org.smartregister:fhir-common-utils:1.0.3-SNAPSHOT.
   > Could not find org.smartregister:easy-rules-jexl:4.1.1-SNAPSHOT.
   > Could not find org.smartregister:data-capture:1.3.0-preview-SNAPSHOT.
   > Could not find org.smartregister:contrib-barcode:0.1.0-beta3-preview7-SNAPSHOT.
   > Could not find org.smartregister:contrib-locationwidget:0.1.0-alpha01-preview2-SNAPSHOT.
   > Could not find org.smartregister:engine:1.2.0-preview-SNAPSHOT.
   > Could not find org.smartregister:common:0.1.0-alpha05-preview3-SNAPSHOT.

Full Repository Search Trace (Quest Module Example)
Gradle attempted to search for these files in the following locations without success:

https://oss.sonatype.org/content/repositories/snapshots/

https://s01.oss.sonatype.org/content/repositories/snapshots/

https://central.sonatype.com/repository/maven-snapshots/

https://api.mapbox.com/downloads/v2/releases/maven/

https://repo.maven.apache.org/maven2/

Metadata

Metadata

Assignees

Labels

Bug ReportSomething isn't working as expected

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions