private void verifyDuplicatedLines()

in build-tools/src/main/java/co/elastic/otel/android/compilation/tools/tasks/CreateDependenciesListTask.java [80:92]


    private void verifyDuplicatedLines(Map<String, List<ArtifactIdentification>> linesSet) {
        for (String displayName : linesSet.keySet()) {
            List<ArtifactIdentification> identifications = linesSet.get(displayName);
            if (identifications.size() > 1) {
                List<String> uris = new ArrayList<>();
                for (ArtifactIdentification identification : identifications) {
                    uris.add(identification.gradleUri);
                }
                getProject().getLogger().warn("Found multiple artifacts with the same name: '" + displayName + "' " +
                        "therefore only one was added to the list to avoid duplication. The artifacts -> " + uris);
            }
        }
    }