Skip to content

fix(demoapps): resolve standalone mode dependency resolution#262

Closed
fireboy1919 wants to merge 1 commit intoairbnb:mainfrom
fireboy1919:fix/demoapp-standalone-versions
Closed

fix(demoapps): resolve standalone mode dependency resolution#262
fireboy1919 wants to merge 1 commit intoairbnb:mainfrom
fireboy1919:fix/demoapp-standalone-versions

Conversation

@fireboy1919
Copy link
Copy Markdown
Collaborator

@fireboy1919 fireboy1919 commented Jan 14, 2026

Summary

  • Fixes demoapps failing to build in standalone mode
  • Removes broken dynamic version injection via settings.gradle.kts
  • Adds explicit viaduct versions in TOML files with proper version.ref

Problem

Demoapps in standalone mode failed with:

Could not find com.airbnb.viaduct:api:.

The empty version (.) was caused by versionCatalogs { create("libs") { version("viaduct", ...) } } not loading the TOML file, and the TOML library entries lacking version.ref = "viaduct".

Solution

  1. Remove val viaductVersion: String by settings and versionCatalogs block
  2. Add viaduct = "0.20.0-SNAPSHOT" to each demoapp's libs.versions.toml
  3. Add version.ref = "viaduct" to all Viaduct library declarations

For unpublished SNAPSHOTs, users can add mavenLocal() after running publishToMavenLocal.

Test Plan

  • Verified composite mode still works: ./gradlew :cli-starter:build
  • Verified dependency substitution works: dependencies show -> project :api
fix(demoapps): resolve standalone mode dependency resolution

Fixes demoapps failing to build in standalone mode with error
"Could not find com.airbnb.viaduct:api:." by adding explicit
viaduct versions to TOML files and removing broken dynamic
version injection.

Fixes demoapps failing to build in standalone mode with error:
"Could not find com.airbnb.viaduct:api:."

Changes:
- Remove dynamic viaductVersion injection via settings.gradle.kts
- Add explicit viaduct version in each demoapp's libs.versions.toml
- Add version.ref = "viaduct" to all Viaduct library declarations
- Remove unused versionCatalogs block that caused empty version resolution

For unpublished SNAPSHOTs, users can add mavenLocal() after running
publishToMavenLocal from the viaduct root.
@fireboy1919 fireboy1919 force-pushed the fix/demoapp-standalone-versions branch from 0a905b8 to c38d176 Compare January 14, 2026 16:02
@rstata rstata closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants