in src/main/java/software/amazon/smithy/gradle/SmithyPlugin.java [163:175]
private void failIfRunningInMainSmithyRepo(Project project) {
if (project.getParent() != null) {
Project parent = project.getParent();
if (parent.getGroup().equals("software.amazon.smithy")) {
for (Project subproject : parent.getSubprojects()) {
if (subproject.getPath().equals(":smithy-cli")) {
throw new GradleException("Detected that this is the main Smithy repo. "
+ "You need to add an explicit :project dependency on :smithy-cli");
}
}
}
}
}