String (Document document) { String groupId = getGroupId(document); String artifactId = getArtifactId(document); if (groupId.isEmpty() && artifactId.isEmpty()) { return null; } String version = getVersion(document); String classifier = getClassifier(document); String gradleClassifier = classifier.isEmpty() ? "" : ":" + classifier; return groupId + ":" + artifactId + ":" + version + gradleClassifier; }