com.itemis.maven.plugins.unleash.util.functions.PluginToCoordinates Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unleash-maven-plugin Show documentation
Show all versions of unleash-maven-plugin Show documentation
This plugin provides a generic alternative to the error-prone default release plugin provided by Maven. It is designed to require a minimal effort of work for releasing modules and being extensible to integrate in every project setup.
package com.itemis.maven.plugins.unleash.util.functions;
import org.apache.maven.model.Plugin;
import com.google.common.base.Function;
import com.itemis.maven.aether.ArtifactCoordinates;
/**
* A function to convert a {@link Plugin} to an {@link ArtifactCoordinates} object.
*
* @author Stanley Hillner
* @since 2.4.3
*/
public enum PluginToCoordinates implements Function {
INSTANCE;
// TODO implement tests!
@Override
public ArtifactCoordinates apply(Plugin p) {
return new ArtifactCoordinates(p.getGroupId(), p.getArtifactId(), p.getVersion());
}
}