public StubModule addDependency(String moduleId, String minVersion, String maxVersion) { DependencyInfo dependency = new DependencyInfo(); dependency.setId(moduleId); dependency.setMinVersion(Version.create(minVersion)); dependency.setMaxVersion(Version.create(maxVersion)); dependencies.add(dependency); return this; }
/** Append the contents of the CharSource to the supplied appendable. */ private void appendTo(Appendable out, DependencyInfo info, CharSource content) throws IOException { if (info.isModule()) { appendGoogModule(out, content); } else { appendTraditional(out, content); } }