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

Fixed groovy plugin apply order #3

Merged
merged 1 commit into from
Dec 28, 2022
Merged

Conversation

rainboyan
Copy link
Contributor

Fixed error:
Script '/common-plugin.gradle' line: 3

  • What went wrong:
    A problem occurred evaluating script.

Failed to apply plugin 'org.gradle.groovy'.
Cannot add task 'groovydoc' as a task with that name already exists.

@rainboyan
Copy link
Contributor Author

@puneetbehl have time to check this? I need this to build grails-async.

@puneetbehl
Copy link
Contributor

Thank you for your time. I think for Gradle 6 or later, overriding a task is not allowed. Could you please describe how changing the order affect the above issue?

@rainboyan
Copy link
Contributor Author

rainboyan commented Jan 5, 2022

I use gradle 6.9 to build grails/grails-async, may be org.grails.grails-plugin overriding groovydoc task, but when changing the order, build success.
Please check it if you have time. Thank you for your time,
I want release a new version with next grails release train, Any help if I can.

https://github.com/rainboyan/grails-async/tree/5.0.x

@rainboyan
Copy link
Contributor Author

@puneetbehl yes, GrailsGradlePlugin extends Groovy. So it should be applied after groovy plugin.

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

Successfully merging this pull request may close these issues.

None yet

2 participants