Skip to content

Commit

Permalink
Use the PlexusConfiguration interface instead of the final class
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed May 15, 2023
1 parent 7b9282c commit 0ce5ac5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public interface ReleaseDescriptor {
/**
* Get the (optional) config for the VersionPolicy implementation used to calculate the project versions.
*
* @return The parsed XML of the provided config (an instance of XmlPlexusConfiguration) or null.
* @return The parsed XML of the provided config (an instance of PlexusConfiguration) or null.
*/
Object getProjectVersionPolicyConfig();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.apache.maven.shared.release.ReleaseExecutionException;
import org.apache.maven.shared.release.ReleaseFailureException;
import org.apache.maven.shared.release.config.ReleaseDescriptorBuilder;
import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
import org.codehaus.plexus.configuration.PlexusConfiguration;

/**
* Branch a project in SCM, using the same steps as the <code>release:prepare</code> goal, creating a branch instead of
Expand Down Expand Up @@ -204,7 +204,7 @@ public class BranchReleaseMojo extends AbstractScmReleaseMojo {
* @since 3.0.0
*/
@Parameter(property = "projectVersionPolicyConfig")
private XmlPlexusConfiguration projectVersionPolicyConfig;
private PlexusConfiguration projectVersionPolicyConfig;

/**
* The role-hint for the {@link org.apache.maven.shared.release.policy.naming.NamingPolicy}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import org.apache.maven.shared.release.ReleaseFailureException;
import org.apache.maven.shared.release.ReleasePrepareRequest;
import org.apache.maven.shared.release.config.ReleaseDescriptorBuilder;
import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
import org.codehaus.plexus.configuration.PlexusConfiguration;

/**
* Prepare for a release in SCM. Steps through several phases to ensure the POM is ready to be released and then
Expand Down Expand Up @@ -250,7 +250,7 @@ public class PrepareReleaseMojo extends AbstractScmReleaseMojo {
* @since 3.0.0
*/
@Parameter(property = "projectVersionPolicyConfig")
private XmlPlexusConfiguration projectVersionPolicyConfig;
private PlexusConfiguration projectVersionPolicyConfig;

/**
* The role-hint for the {@link org.apache.maven.shared.release.policy.naming.NamingPolicy}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.apache.maven.shared.release.ReleaseFailureException;
import org.apache.maven.shared.release.ReleaseUpdateVersionsRequest;
import org.apache.maven.shared.release.config.ReleaseDescriptorBuilder;
import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
import org.codehaus.plexus.configuration.PlexusConfiguration;

/**
* Update the POM versions for a project. This performs the normal version updates of the <code>release:prepare</code>
Expand Down Expand Up @@ -97,7 +97,7 @@ public class UpdateVersionsMojo extends AbstractReleaseMojo {
* @since 3.0.0
*/
@Parameter(property = "projectVersionPolicyConfig")
private XmlPlexusConfiguration projectVersionPolicyConfig;
private PlexusConfiguration projectVersionPolicyConfig;

@Override
public void execute() throws MojoExecutionException, MojoFailureException {
Expand Down

0 comments on commit 0ce5ac5

Please sign in to comment.