Interface DependencyManagementVersionResolver


@Deprecated(since="0.20.0", forRemoval=true) public interface DependencyManagementVersionResolver
Deprecated, for removal: This API element is subject to removal in a future version.
as of 0.20.0 in favor of MavenVersionResolver.
A DependencyManagementVersionResolver is used to resolve the versions in the managed dependencies of a Maven bom. Implementations must be thread-safe.
Author:
Andy Wilkinson
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(String groupId, String artifactId, String version)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Resolves the versions in the managed dependencies of the bom identified by the given groupId, artifactId, and version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new DependencyManagementVersionResolver that uses the given location for its local cache.
  • Method Details

    • resolve

      Map<String,String> resolve(String groupId, String artifactId, String version)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Resolves the versions in the managed dependencies of the bom identified by the given groupId, artifactId, and version.
      Parameters:
      groupId - bom group ID
      artifactId - bom artifact ID
      version - bom version
      Returns:
      the managed dependencies as a map of groupId:artifactId to version
    • withCacheLocation

      static DependencyManagementVersionResolver withCacheLocation(Path location)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new DependencyManagementVersionResolver that uses the given location for its local cache. To avoid multiple instances attempting to write to the same location cache, callers should ensure that a unique location is used. The returned resolver can then be used concurrently by multiple threads.
      Parameters:
      location - cache location
      Returns:
      the resolver