-
-
Notifications
You must be signed in to change notification settings - Fork 66
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 multiple build variant license tasks crashes build #55
Comments
I get this error:
|
Yep that's the issue we're getting too, is this expected behaviour? We're currently just deleting the 'poms' configuration after each task which seems to work fine - we get good output from the license task for each build variant. I'm thinking maybe this is something that should be done by the task itself? |
Maybe we should create a separate configuration per variant? |
Thanks for addressing this! |
In a project with a few different build variants, running a full
gradle build
results in a crash.The crash seems to be caused by each variant's license task conflicting with one another. When the first license task runs, it creates a configuration called 'poms'. Then when the second variant's license task runs, it attempts to create the same configuration, which crashes since it already exists.
Here's a small example app that demos this issue: https://github.com/egargan/license-plugin-issue-demo.
The error output can be viewed in the /gradle-build-error-output file. The /app/build.gradle file sets up the calls to each task.
The text was updated successfully, but these errors were encountered: