Restore compatibility for the maven-release-plugin

This commit is contained in:
Guillaume Nodet 2022-10-15 01:33:17 +02:00
parent a492c9a4ff
commit 550f0c90fc
1 changed files with 12 additions and 0 deletions

View File

@ -295,4 +295,16 @@ public final class SettingsUtils
return policy; return policy;
} }
/**
* @param settings could be null
* @return a new instance of settings or null if settings was null.
*/
public static org.apache.maven.settings.Settings copySettings( org.apache.maven.settings.Settings settings )
{
if ( settings == null )
{
return null;
}
return new org.apache.maven.settings.Settings( settings.getDelegate() );
}
} }