sls-packaging icon indicating copy to clipboard operation
sls-packaging copied to clipboard

Locking asset configuration with GCV does not work if subprojects define their own repos

Open fawind opened this issue 3 years ago • 0 comments

What happened?

There seems to be a bug introduced by https://github.com/palantir/sls-packaging/pull/1012.

While writing locks for an assetBundle, sls-packaging is not respecting repository overrides defined in the bundle project. E.g. the case where we discovered this, the asset dependency gets resolved through a local maven repo that's checked in into the git repo.

A workaround is to add the repository to the root build.gradle. For example:

allprojects {
  repositories {
    maven { url project(':my-local-project').file('maven' )}\
  }
}

Internal link with more context: https://g.p.b/f/transforms-sql/pull/2181#issuecomment-1563574

cc @rshkv who flagged this.

fawind avatar Mar 19 '21 15:03 fawind