-
Notifications
You must be signed in to change notification settings - Fork 24
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
Remove the legacy Gradle build lifecycle API #159
Conversation
finished actions has been deprecated for a while so we can remove it
53a4505
to
e3ec808
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check my comments, thanks.
@@ -116,12 +116,9 @@ abstract class UploadArtifactTask extends DefaultTask { | |||
if (!sent && (Config.shouldOpenAppDetailAfterUpload() || response.typedResponse.application.revision == 1)) { | |||
BrowserUtils.openBrowser "${project.deploygate.endpoint}${response.typedResponse.application.path}" | |||
} | |||
} catch (HttpResponseException e) { | |||
} catch (Throwable e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand to this change behavior to send to server always.
So, I ask to reason to why aggregate to super class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We never allow any failure when notifying lifecycle events to the server so it's better to suppress Throwable rather than specifying specific exceptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I understand to this change is necessary 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🙆♂️
Thank you so much! |
Related to #147 and #148
As for buildFinished, we have not used this action for a while. We can safely delete this.