-
Notifications
You must be signed in to change notification settings - Fork 87
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
compileTestAspect can't compile Classes with static fields #218
Comments
a workaround I found for that ist to run ./gradlew clean build -x test before running the test. |
Hi @superwese Thanks for reporting the issue. I will have a look at this sometime this week. |
Hi, can this issue be worked on? Please advise. Thanks, Asha. |
Hi @somayaj / @superwese Apologies for delay, but this looks like an upstream bug with Gradle Similar problem does not exists when working with maven project. |
Hi Again @somayaj I tried to replicate the above issue, the problem seems to only occur when you already have a build folder created locally with classes before you introduced static field dependancy. Once you delete the locally created temp build folder created from before, it works fine. Let me know if this solves your issue. Closing the issue for now. |
What were you trying to accomplish?
I have a class that resembles a respository. In this class a have a
In my tests, I am trying to access this field to set a system property:
when I run the tests I get this error from the compileTestAspect :
This is not happening in the compileAspect task, that produces the production code.
Is there anything I can do that the AspectJ plugin is not trying to compile my classes?
I am building with gradle.
Expected Behavior
It should compile
Steps to Reproduce (for bugs)
Environment
Gradle.build:
gradle.properties:
gradle-wrapper.properties:
The text was updated successfully, but these errors were encountered: