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 doesn't work out-of-box #10

Closed
sokada1221 opened this issue Aug 18, 2021 · 2 comments
Closed

Lombok doesn't work out-of-box #10

sokada1221 opened this issue Aug 18, 2021 · 2 comments

Comments

@sokada1221
Copy link

Currently the plugin doesn't support testCompileOnly and testAnnotationProcessor keywords, which is needed for the Lombok library.

Snippet from https://projectlombok.org/setup/gradle

dependencies {
	compileOnly 'org.projectlombok:lombok:1.18.20'
	annotationProcessor 'org.projectlombok:lombok:1.18.20'
	
	testCompileOnly 'org.projectlombok:lombok:1.18.20'
	testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
}

Workaround is to specifically add the dependencies for the integration test. For example:

dependencies {
	integrationCompileOnly 'org.projectlombok:lombok:1.18.20'
	integrationAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
}

Since Lombok library is fairly popular and can be useful for integration tests, it'd be nice to support it.

@pmendelski
Copy link
Contributor

Hi, thanks for your PR.

I extended all test configurations to handle all cases like the one with Lombok (commit). Please, try version 1.3.0 and let me know if all is good.

@sokada1221
Copy link
Author

Verified that v1.3.0 works fine. Thanks.

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 a pull request may close this issue.

2 participants