All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itemis.maven.plugins.unleash.util.functions.PluginToCoordinates Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.10.0
Show newest version
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());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy