Skip to content

Commit

Permalink
Merge pull request #575 from basil/OptionHandlerExtension
Browse files Browse the repository at this point in the history
Register `OptionHandler` through `META-INF/services/annotations` and Annotation Indexer rather than `META-INF/services` and Commons Discovery
  • Loading branch information
jtnord authored Dec 10, 2024
2 parents 6017143 + 478c73c commit 1e306e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.kohsuke.metainf-services</groupId>
<artifactId>metainf-services</artifactId>
<version>1.11</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.xmlunit</groupId>
<artifactId>xmlunit-matchers</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import com.cloudbees.plugins.credentials.CredentialsSelectHelper;
import com.cloudbees.plugins.credentials.CredentialsStore;
import org.kohsuke.MetaInfServices;
import hudson.cli.declarative.OptionHandlerExtension;
import org.kohsuke.args4j.CmdLineException;
import org.kohsuke.args4j.CmdLineParser;
import org.kohsuke.args4j.OptionDef;
Expand All @@ -38,7 +38,7 @@
*
* @since 2.1.1
*/
@MetaInfServices(OptionHandler.class)
@OptionHandlerExtension
public class CredentialsStoreOptionHandler extends OptionHandler<CredentialsStore> {
/**
* {@inheritDoc}
Expand Down

0 comments on commit 1e306e8

Please sign in to comment.