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

Contents of CheckLicenseTask.allowedLicenseFile rather than the absolute path should be treated as an input #260

Open
erdi opened this issue Feb 28, 2023 · 0 comments

Comments

@erdi
Copy link

erdi commented Feb 28, 2023

Currently only the absolute path of the allowed license file is treated as an input for CheckLicenseTask. This is not sufficient because the task should not be up-to-date if one of the allowed licenses has been removed from the config file. Secondly it causes the task to be non-relocatable.

This means that I have to resort to the following workaround

        project.tasks.named("checkLicense") {
            inputs.file(allowedLicensesConfigFile)
                    .withPathSensitivity(RELATIVE)
                    .withPropertyName("allowedLicensesConfiguration")
        }

That does unfortunately not solve the non-relocatability problem.

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