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

Running license{$variant}Report while process{$variant}Manifest results in EMPTY json/html #131

Open
jomapp opened this issue Jun 15, 2020 · 1 comment

Comments

@jomapp
Copy link

jomapp commented Jun 15, 2020

While using your gradle license plugin in a bigger project I noticed that it's not possible to run the license{$variant}Report in a task that also depends on process{$variant}Manifest, from the Android Gradle Plugin, somehow. Please see the following code. I also created a simple project here.

Running generateLicenses works fine, but running createEmptyLicenseReportIssue instead, resolves in an empty json/html file.

Thank you for looking into this issue!

licenseReport {
    generateHtmlReport = false
    generateJsonReport = true
    copyHtmlReportToAssets = false
    copyJsonReportToAssets = false
}

task generateLicenses { // Does Work ✅
    dependsOn 'licenseDebugReport'
}

task createEmptyLicenseReportIssue { // Does not work ⛔️
    dependsOn 'processDebugManifest'
    dependsOn 'generateLicenses'
}

generateLicenses.mustRunAfter('processDebugManifest')
@jaredsburrows
Copy link
Owner

@jomapp What is the use case for this? Have you found a work around?

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

2 participants