-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Hypothesis: should use getRuntimeClasspath instead of getCompileClasspath #62
Comments
I believe this change is now causing |
@cmuchinsky how you use BTW we have workaround for this case: set |
I use |
Any thoughts on the above comment @KengoTODA ? |
If the classpaths should be merged, there must be an ordering so that the runtime classpath comes before the compile classpath, otherwise you might get very weird warnings indeed. |
@KengoTODA Perhaps the configuration name(s) to pull the classpath from should be a config option of the plugin itself, that way the user can choose the behavior that works for their use case? |
just got bitten by the an example for |
Sorry for late reply, I was on vacation :) @cmuchinsky I think your usage of |
I'm pretty sure my usage of |
|
|
OK no other discussion needed, but you can have a try with |
I'm running into this with an annotation processor.
|
Just for the record and those still following this. |
So yeah, now we are back at adding the runtime dependencies to the preconfigured value instead of the compile dependencies. The plugin should probably really add both by default. |
In
configureForSourceSet
, the classpath is mapped astaskMapping.map("classpath", sourceSet::getCompileClasspath);
However, if the compilation depends on multiple layers of module dependencies that only expose their dependencies as
implementation
, those dependencies do not end up on the compile classpath, thus leading toThe following classes needed for analysis were missing:
messages.I'm guessing it should be enough to replace
getCompileClasspath
withgetRuntimeClasspath
to rectify this.The text was updated successfully, but these errors were encountered: