-
Notifications
You must be signed in to change notification settings - Fork 753
Open
Description
I am using v2.0-rc.3
and when starting an application I get a load of warnings regarding annotation used in the github-api library.
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GitHub.class): warning: Cannot find annotation method 'value()' in type 'SuppressFBWarnings': class file for edu.umd.cs.findbugs.annotations.SuppressFBWarnings not found
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GitHub.class): warning: Cannot find annotation method 'justification()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GitHub.class): warning: Cannot find annotation method 'value()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GitHub.class): warning: Cannot find annotation method 'justification()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHArtifact.class): warning: Cannot find annotation method 'value()' in type 'WithBridgeMethods': class file for com.infradna.tool.bridge_method_injector.WithBridgeMethods not found
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHArtifact.class): warning: Cannot find annotation method 'adapterMethod()' in type 'WithBridgeMethods'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHArtifact.class): warning: Cannot find annotation method 'value()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHArtifact.class): warning: Cannot find annotation method 'justification()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHWorkflowRun.class): warning: Cannot find annotation method 'value()' in type 'WithBridgeMethods'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHWorkflowRun.class): warning: Cannot find annotation method 'adapterMethod()' in type 'WithBridgeMethods'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHWorkflowRun.class): warning: Cannot find annotation method 'value()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHWorkflowRun.class): warning: Cannot find annotation method 'justification()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHWorkflowRun.class): warning: Cannot find annotation method 'value()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHWorkflowRun.class): warning: Cannot find annotation method 'justification()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHWorkflowRun.class): warning: Cannot find annotation method 'value()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GHWorkflowRun.class): warning: Cannot find annotation method 'justification()' in type 'SuppressFBWarnings'
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GitHub.class): warning: Cannot find annotation method 'value()' in type 'SuppressFBWarnings': class file for edu.umd.cs.findbugs.annotations.SuppressFBWarnings not found
.gradle\caches\modules-2\files-2.1\org.kohsuke\github-api\2.0-rc.3\aa2079a423762ba0ce99457038d4d81a13be8c07\github-api-2.0-rc.3.jar(/org/kohsuke/github/GitHub.class): warning: Cannot find annotation method 'justification()' in type 'SuppressFBWarnings'
...
To avoid this one needs to add spotbugs-annotations
and bridge-method-annotation
to each project.
Additionally bridge-method-annotation
is not even hosted on maven central and a third party repository also needs to be added. This is too much overhead just to avoid warnings. Therefor by adding the deps as runtime
solves this issue for all users of the github library
Metadata
Metadata
Assignees
Labels
No labels