-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
[plugin] Gradle plugin unconditionally assumes that a clean
tasks exists
#1492
Comments
The current expectation is to have a
I don't know what you were expecting to gain with this remark.
More context #1074 |
Well, all I can say is that in a build file like this no
I was simply wondering whether, instead of fixing the code to not assume the
Thanks. |
Then I'd suggest you lead with more explanation as you just did instead of what you wrote on the first message. Clarity always wins. |
And no, the code cannot be removed. The logger must be closed no matter what otherwise a file descriptor will be left open on Windows, leading to other problems. What could happen is adding a check for the existence of a |
clean
tasks existsclean
tasks exists
In
jreleaser/plugins/jreleaser-gradle-plugin/src/main/groovy/org/jreleaser/gradle/plugin/internal/JReleaserProjectConfigurer.groovy
Lines 78 to 88 in e4a487d
a
clean
task is (re-)configured to close the logger. However, when applying the JReleaser plugin (for ChangeLog generation only) to the root project (of a multi-project with multiple application projects), noclean
task exists.Is this code even legit? Why should the logger (only) be closed if the
clean
task is executed?The text was updated successfully, but these errors were encountered: