File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/org/jenkinsci/plugins/pipeline/maven/publishers Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 5252 <dependency >
5353 <groupId >io.jenkins.plugins</groupId >
5454 <artifactId >coverage</artifactId >
55+ <optional >true</optional >
5556 </dependency >
5657 <dependency >
5758 <groupId >org.jenkins-ci.main</groupId >
Original file line number Diff line number Diff line change 66
77import edu .umd .cs .findbugs .annotations .CheckForNull ;
88import edu .umd .cs .findbugs .annotations .NonNull ;
9- import hudson .Extension ;
109import hudson .FilePath ;
1110import hudson .model .TaskListener ;
1211import io .jenkins .plugins .coverage .metrics .steps .CoverageStep ;
3029import org .jenkinsci .plugins .pipeline .maven .MavenSpyLogProcessor ;
3130import org .jenkinsci .plugins .pipeline .maven .Messages ;
3231import org .jenkinsci .plugins .pipeline .maven .util .XmlUtils ;
32+ import org .jenkinsci .plugins .variant .OptionalExtension ;
3333import org .jenkinsci .plugins .workflow .steps .StepContext ;
3434import org .jenkinsci .plugins .workflow .steps .StepExecution ;
3535import org .kohsuke .stapler .DataBoundConstructor ;
@@ -246,7 +246,7 @@ private SourceCodeDirectory toSourceDirectory(Element e) {
246246 }
247247
248248 @ Symbol ("coveragePublisher" )
249- @ Extension
249+ @ OptionalExtension ( requirePlugins = "coverage" )
250250 public static class DescriptorImpl extends AbstractHealthAwarePublisher .DescriptorImpl {
251251 @ NonNull
252252 @ Override
You can’t perform that action at this time.
0 commit comments