Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GradleDependencyScanner only supports Java language #356

Open
Janpopan opened this issue Nov 19, 2022 · 0 comments
Open

GradleDependencyScanner only supports Java language #356

Janpopan opened this issue Nov 19, 2022 · 0 comments

Comments

@Janpopan
Copy link
Contributor

@derkoe as far as I understand the code the GradleDependencyScanner.java supports only the java language.

    private void prepareDependencySet(Set<Dependency> dependencySet, JsonArray arr)
    {
        for (javax.json.JsonValue entry : arr)
        {
            JsonObject jsonDepObj = entry.asJsonObject();
            JsonArray arrModuleUrls = jsonDepObj.getJsonArray("moduleUrls");
            String moduleLicense = getModuleLicenseFromJsonObject(jsonDepObj);
            String moduleLicenseUrl = null;
            if (arrModuleUrls != null)
            {
                moduleLicenseUrl = arrModuleUrls.getString(0, null);
            }
            Dependency dep = new Dependency(jsonDepObj.getString("moduleName", null),
                jsonDepObj.getString("moduleVersion", null), moduleLicense, LicenseCheckRulesDefinition.LANG_JAVA);
            dep.setPomPath(moduleLicenseUrl);
            dependencySet.add(dep);
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant