-
Notifications
You must be signed in to change notification settings - Fork 26
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
closeRepository and releaseRepository shouldn't be executed in parallel #70
Comments
I also had an issue where an publish task failed to upload its artifact, because the closeRepository task already closed the repository, so there should also be an explicit order dependency to all publish tasks |
Which version do you use? I was investigating it a year ago and it seemed to be an inconsistency how Gradle handle that case with depending failed tasks. If the problem you are facing is still valid in the recent Gradle version (6.x) I will report it as a bug to Gradle. |
Here is a build scan of a failed build: https://scans.gradle.com/s/4ysuqst474wua It was Gradle 5.6.4, because this plugin doesn't work with Gradle 6 (see #141) |
Thanks, I will try to bring back the minimal case I had a year ago to report it. Regarding Gradle 6, I would like to have the change properly tested first. |
@larsgrefer FYI, I came back to that case and I realized that your problem is not the same as the original one. The root problem was to (try to) execute In your case |
@pavolloffay It's been long time, but I finally took a look at the original problem reported initially in #69, but diverged later on to a problem with Travis and multiple staging repositories. I planned to report an issue in Gradle, but it turned out that I'm not sure if it is a bug there. This comment is just an update, but you might be interested as it still may affect your project :). The problem occurs even in the sequential execution having 4 (simple) tasks orchestrated the following way:
When In your case you could:
Update. Looking at the current source code I realized that use started to use some releasing plugin. In that case it may be enough to wire them to
Probably it is not worth your energy. Btw, Let me know if you need any more support on your case. |
As reported in #69 it seems that
closeRepository
andreleaseRepository
can be executed in parallel even for the same project. There should be a strict dependency defined.The text was updated successfully, but these errors were encountered: