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

Lombok does not work in a non-standard test set #3391

Open
jimshowalter opened this issue Apr 2, 2023 · 5 comments
Open

Lombok does not work in a non-standard test set #3391

jimshowalter opened this issue Apr 2, 2023 · 5 comments
Labels
parked Without further feedback this bug cannot be processed. If no feedback is provided, we close these.

Comments

@jimshowalter
Copy link

jimshowalter commented Apr 2, 2023

Create an unbroken-dome test set other than component and integration.

Create a class in the test set that uses lombok:

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class ThisWillFail {
    private final String foo;
}

Try to build.

It's not clear if this is a problem with unbroken-dome, lombok, or both, so filed this and unbroken-dome/gradle-testsets-plugin#133.

@Rawi01
Copy link
Collaborator

Rawi01 commented Apr 2, 2023

As mentioned on the setup page you have to add lombok as compileOnly and annotationProcessor dependency. There also is a pull request that added support for these dependencies: unbroken-dome/gradle-testsets-plugin#45

I don't know how the testset plugin works but I guess that your testset does not include one of these dependencies.

@jimshowalter
Copy link
Author

We already have all of that configured. I'm trying to create a minimal example that reproduces the problem.

@Rawi01
Copy link
Collaborator

Rawi01 commented Apr 3, 2023

You can also check the gradle log to see the compiler command, that might help you to figure out if lombok gets added properly.

@jimshowalter
Copy link
Author

We know lombok is being added correctly, because it works fine in test, componentTest, and integrationTest.

But it fails in a non-standard test set.

@Rawi01
Copy link
Collaborator

Rawi01 commented Apr 8, 2023

If I understand that plugin documentation correctly there are no predefined test sets expect unitTest. So your issue is most likely a configuration problem and not related to lombok.

@Rawi01 Rawi01 added the parked Without further feedback this bug cannot be processed. If no feedback is provided, we close these. label Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parked Without further feedback this bug cannot be processed. If no feedback is provided, we close these.
Projects
None yet
Development

No branches or pull requests

2 participants