com.google.security.fences.util.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fences-maven-enforcer-rule Show documentation
Show all versions of fences-maven-enforcer-rule Show documentation
Augments Java's access control by checking that a Maven Project and all its
dependencies conform to a policy that specifies which classes/packages can
link to which others.
package com.google.security.fences.util;
import org.apache.maven.artifact.Artifact;
/**
* Miscellaneous side-effect-free utilities.
*/
public final class Utils {
/** artifact:group:version style Maven artifact identifier. */
public static String artToString(Artifact art) {
// TODO: Replace once we update to a version of ArtifactUtils that has
// key(Artifact)?
// Is this redundant with Artifact.getId()? The format of that is not
// documented.
return art.getGroupId() + ":" + art.getArtifactId()
+ ":" + art.getVersion();
}
private Utils() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy