private static void exportDependencyVersions(final String rootDir, final File dataPath) throws Exception {
        var file = new File(rootDir, "docs/cas-server-documentation-processor/build/dependencies.json");
        if (!file.exists()) {
            LOGGER.error("[{}] does not exist", file.getCanonicalPath());
            return;
        }

        var parentPath = new File(dataPath, "dependency-versions");
        if (parentPath.exists()) {
            FileUtils.deleteQuietly(parentPath);
        }
        parentPath.mkdirs();
        var depFile = new File(parentPath, "config.yml");

        var dependencies = CasConfigurationMetadataCatalog.getObjectMapper().readValue(
            FileUtils.readFileToString(file, StandardCharsets.UTF_8), List.class);
        LOGGER.info("Writing [{}] dependencies found in [{}]", dependencies.size(), file.getCanonicalPath());
        CasConfigurationMetadataCatalog.export(depFile, dependencies);
    }
This is {@link CasDocumentationApplication}.

@author Misagh Moayyed
@since 6.4.0
docs/cas-server-documentation-processor/src/main/java/org/apereo/cas/documentation/CasDocumentationApplication.java