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

Don't use custom serialization when reporting type validation problems #29189

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

donat
Copy link
Member

@donat donat commented May 16, 2024

Fixes #29188

Comment on lines +241 to +242
if (serviceClass.isAssignableFrom(InternalProblems.class)) {
return allServices.find(InternalProblems.class);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for looking into this @hegyibalint!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trivial solution, isn't it?!... 😂

@gitstream-cm gitstream-cm bot requested a review from reinsch82 May 17, 2024 09:31
@gradle gradle deleted a comment from donat May 30, 2024
@gradle gradle deleted a comment from donat May 31, 2024
@gradle gradle deleted a comment from donat May 31, 2024
@gradle gradle deleted a comment from donat Jun 3, 2024
@bot-gradle
Copy link
Collaborator

I've triggered the following builds for you. Click here to see all build failures.

@gradle gradle deleted a comment from donat Jun 3, 2024
@bot-gradle
Copy link
Collaborator

I've triggered the following builds for you. Click here to see all build failures.

@donat
Copy link
Member Author

donat commented Jun 3, 2024

@bot-gradle test this

@gradle gradle deleted a comment from donat Jun 3, 2024
@bot-gradle
Copy link
Collaborator

I've triggered the following builds for you. Click here to see all build failures.

Comment on lines +27 to +28
api(project(":build-operations"))
api(projects.serviceProvider)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SanityCheck failed wo/this change.

]
}

verifyAll(receivedProblem(0)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only removed the if statement.

@@ -16,6 +16,6 @@

package org.gradle.plugin.devel.tasks

class CommonPluginValidationIntegrationTest extends AbstractPluginValidationIntegrationSpec implements ValitdatePluginsTrait {
class CommonPluginValidationIntegrationTest extends AbstractPluginValidationIntegrationSpec implements ValidatePluginsTrait {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo fixed.

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.

Get rid of custom serialization when reporting task validation problems via the Problems API
4 participants