Skip to content

12.1.0-rc03 ignores aboutLibraries.export.excludeFields #1154

@opatry

Description

@opatry

I just tried updating to latest rc03 and regenerated the JSON file.
I appears I get back funding, website or scm nodes which were ignored in the configuration.

Here is my configuration:

aboutLibraries {
    collect {
        configPath = file("$rootDir/license_config")
        offlineMode = true
        fetchRemoteLicense = true
        fetchRemoteFunding = false
        includePlatform = false
    }
    android {
        registerAndroidTasks = false
    }
    export {
        outputPath = file("${projectDir}/src/main/resources/licenses_desktop.json")
        excludeFields.addAll("metadata", "funding", "scm", "associated", "website", "Developer.organisationUrl", "Organization.url")
        prettyPrint = true
    }
    license {
        strictMode = StrictMode.FAIL
        allowedLicenses.addAll("Apache-2.0", "asdkl", "MIT", "EPL-1.0", "BSD-3-Clause")
    }
    library {
        duplicationMode = DuplicateMode.MERGE
        duplicationRule = DuplicateRule.SIMPLE
    }
}

Works perfectly fine since many versions and was working in 12.1.0-rc01 and 12.1.0-rc02.

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