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

Request: Automatically configure compiler to reflect the test module's pom file (or build.gradle) #346

Open
rsmckinney opened this issue Feb 14, 2023 · 2 comments
Labels
P3 type=addition A new feature

Comments

@rsmckinney
Copy link

Most non-trivial projects will have a test module configured with dependencies, compiler options, processor path, etc. I just want the compile-testing stuff to reflect the build's configuration. Otherwise, getting this right, and keeping it in sync is tedious and error prone. Would greatly appreciate a feature to do this automatically.

@eamonnmcmanus
Copy link
Member

I understand the desire for this, but I think it would be hard to achieve within the compile-testing library itself. It seems as if it should be a Maven or Gradle plugin, or the like?

@rsmckinney
Copy link
Author

Yes, that makes perfect sense. Ideally, this feature would be based on separate plugins targeting maven and gradle. In my case I just need maven support.

Perhaps a crazy idea. Suppose compile-testing could provide a Java compiler plugin that captures the build configuration exactly as reflected in the compiler during compilation of compile-testing tests. The information could be collected and serialized in a form directly usable during execution of compile-testing tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 type=addition A new feature
Projects
None yet
Development

No branches or pull requests

2 participants