Skip to content

Modules database moved #76

@sormuras

Description

@sormuras

I refactored how sormuras/modules scans and presents module name-uri pairs.

This pro code here...

private static void updateModuleNameList() {
var moduleNameListURI = uri("https://raw.githubusercontent.com/sormuras/modules/master/module-maven.properties");
var resolverResourceFile = location("src/main/resources/com.github.forax.pro.plugin.resolver/com/github/forax/pro/plugin/resolver/module-maven.properties");
try {
var tmpDir = createTempDirectory("pro");
download(moduleNameListURI, tmpDir);
System.out.println("download " + moduleNameListURI);
createDirectories(resolverResourceFile.getParent());
move(tmpDir.resolve("module-maven.properties"),
resolverResourceFile,
REPLACE_EXISTING);
} catch(IOException | UncheckedIOException e) {
System.err.println("can not update module name list " + e.getMessage());
}
}

...still works, but refers to a stalled (read: no longer daily updated) module-maven.properties file.

Now, daily updates of the new database are presented in two ways:

Also, stable versions are collected here: https://github.com/sormuras/modules/releases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions