Open gtoison opened 10 months ago
Error prone relies on the service loader mechanism to load plugin, the plugin's jar needs to contain a BugChecker file named: META-INF\services\com.google.errorprone.bugpatterns.BugChecker
BugChecker
META-INF\services\com.google.errorprone.bugpatterns.BugChecker
I think that since https://github.com/uber/AutoDispose/pull/471 the file is gone from the jar META-INF folder and the plugin is not picked up by error prone anymore. Unless I misunderstood that file used to be generated using the annotation processor for @AutoService(BugChecker.class) here: https://github.com/uber/AutoDispose/blob/9e726c7bdbac4052a12247cf1a87b1fce3cb4967/static-analysis/autodispose-error-prone/build.gradle#L22
META-INF
@AutoService(BugChecker.class)
Error prone relies on the service loader mechanism to load plugin, the plugin's jar needs to contain a
BugChecker
file named:META-INF\services\com.google.errorprone.bugpatterns.BugChecker
I think that since https://github.com/uber/AutoDispose/pull/471 the file is gone from the jar
META-INF
folder and the plugin is not picked up by error prone anymore. Unless I misunderstood that file used to be generated using the annotation processor for@AutoService(BugChecker.class)
here: https://github.com/uber/AutoDispose/blob/9e726c7bdbac4052a12247cf1a87b1fce3cb4967/static-analysis/autodispose-error-prone/build.gradle#L22