class InitializrMetadataV21JsonMapper extends InitializrMetadataV2JsonMapper {

	private final TemplateVariables dependenciesVariables;

	public InitializrMetadataV21JsonMapper() {
		this.dependenciesVariables = new TemplateVariables(
				new TemplateVariable("bootVersion", TemplateVariable.VariableType.REQUEST_PARAM));
	}

	@Override
	protected ObjectNode links(ObjectNode parent, List<Type> types, String appUrl) {
		ObjectNode links = super.links(parent, types, appUrl);
		links.set("dependencies", dependenciesLink(appUrl));
		parent.set("_links", links);
		return links;
	}

	@Override
	protected ObjectNode mapDependency(Dependency dependency) {
		ObjectNode content = mapValue(dependency);
		if (dependency.getRange() != null) {
			content.put("versionRange", formatVersionRange(dependency.getRange()));
		}
		if (dependency.getLinks() != null && !dependency.getLinks().isEmpty()) {
			content.set("_links", LinkMapper.mapLinks(dependency.getLinks()));
		}
		return content;
	}

	protected String formatVersionRange(VersionRange versionRange) {
		return versionRange.format(Format.V1).toRangeString();
	}

	private ObjectNode dependenciesLink(String appUrl) {<FILL_FUNCTION_BODY>}

}

		String uri = (appUrl != null) ? appUrl + "/dependencies" : "/dependencies";
		UriTemplate uriTemplate = UriTemplate.of(uri, this.dependenciesVariables);
		ObjectNode result = nodeFactory().objectNode();
		result.put("href", uriTemplate.toString());
		result.put("templated", true);
		return result;
	
<methods>public void <init>() ,public java.lang.String write(io.spring.initializr.metadata.InitializrMetadata, java.lang.String) <variables>private static final JsonNodeFactory nodeFactory,private final non-sealed TemplateVariables templateVariables