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

Cannot execute multiple DeleteCollectionsTask tasks in a single gradle execution #456

Closed
derms opened this issue Apr 19, 2019 · 0 comments
Assignees
Milestone

Comments

@derms
Copy link
Contributor

derms commented Apr 19, 2019

E.g. for

task deleteFinalData(type: DeleteCollectionsTask) {
    client = hubConfig.newFinalClient()
    collections = ["Document","Client"]
}

task deleteStagingData(type: DeleteCollectionsTask) {
    client = hubConfig.newStagingClient()
    collections = ["input"]
}

task deleteAllData(dependsOn: [deleteStagingData,deleteFinalData])

if you run

gradle deleteAllData

you get the following error

Execution failed for task ':deleteStagingData'.
> Cannot add extension with name 'collections', as there is an extension already registered with that name.

a work around is supplied here

https://gist.github.com/derms/774f33b70edc1bc3aed5026cb893927e

@rjrudin rjrudin added this to the 3.14.0 milestone Apr 22, 2019
@rjrudin rjrudin self-assigned this Apr 22, 2019
@rjrudin rjrudin closed this as completed Apr 22, 2019
rjrudin added a commit that referenced this issue Aug 23, 2024
….fasterxml.jackson.core-jackson-databind-2.12.7.1

Bump jackson-databind from 2.12.6.1 to 2.12.7.1
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