in src/main/java/software/amazon/smithy/plugin/SmithyPostStartupActivity.java [152:172]
private List<String> getBaseCommand(Project project,
String command,
List<String> repositories,
List<String> artifacts
) {
List<String> commandParts = new ArrayList<>(ListUtils.of(
// Point to the right Coursier binary location.
project.getBasePath() + COURSIER_BIN,
// Set the type of command to run.
command,
// Set the cache directory.
"--cache", project.getBasePath() + COURSIER_CACHE));
// Add each repository to the command, using the `-r` flag.
for (String repo : repositories) {
commandParts.add("-r");
commandParts.add(repo);
}
// Add the list of artifacts.
commandParts.addAll(artifacts);
return commandParts;
}