Class DtoUtils


  • public class DtoUtils
    extends Object
    DtoUtils
    • Constructor Detail

      • DtoUtils

        public DtoUtils()
    • Method Detail

      • createDto

        public static Artifact createDto​(org.apache.maven.artifact.Artifact artifact)
      • createdDigestedByProjectChecksum

        public static DigestItem createdDigestedByProjectChecksum​(Artifact artifact,
                                                                  String projectChecksum)
      • createDigestedFile

        public static DigestItem createDigestedFile​(org.apache.maven.artifact.Artifact artifact,
                                                    String fileHash)
      • createDependency

        public static org.apache.maven.model.Dependency createDependency​(org.apache.maven.artifact.Artifact artifact)
      • createDependency

        public static org.apache.maven.model.Dependency createDependency​(Artifact artifact)
      • containsAllProperties

        public static boolean containsAllProperties​(@Nonnull
                                                    CompletedExecution cachedExecution,
                                                    List<TrackedProperty> trackedProperties)
        Checks that all tracked (for reconciliation purposes) properties present in cached build record
        Parameters:
        cachedExecution - mojo execution record (from cache)
        trackedProperties - list of tracked properties (from config)
        Returns:
        true if all tracked properties are listed in the cache record