Multiple repository.json dependencies


#1

The repository.json file lists base as a dependency with a version. Is it possible to also depend on another repository built via C3 jenkins?

For example:

{
  "name": "AppA",
  "version": "2.3.4",
  "description": "Application A",
  "dependencies": { "base" : "7.8.0+395" }
}
{
  "name": "AppB",
  "version": "1.0.0",
  "description": "Application B",
  "dependencies": {
    "base" : "7.8.0+395",
    "AppA": "2.3.4"
  }
}

#2

It is possible but not common. Updates to your CI pipeline will be required to support multiple repository dependencies.


#3

Is there any documentation for this support? Or does this require the work of devops to manage?


#4

We build PackageManager to support multiple dependencies, but unless you have a really strong reason to use it right now, its not recommended. It is not very well documented because, well, we’re kind of hiding it :slight_smile:

Your syntax is correct.