Class ManageDependencies

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.ScanningRecipe<Map<GroupArtifactVersion,Collection<ResolvedDependency>>>
org.openrewrite.maven.ManageDependencies
All Implemented Interfaces:
Cloneable

public class ManageDependencies extends org.openrewrite.ScanningRecipe<Map<GroupArtifactVersion,Collection<ResolvedDependency>>>
Make existing dependencies "dependency managed", moving the version to the dependencyManagement section of the POM.

All dependencies that match groupPattern and artifactPattern should be align-able to the same version (either the version provided to this visitor or the maximum matching version if none is provided).

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openrewrite.Recipe

    org.openrewrite.Recipe.Builder, org.openrewrite.Recipe.DelegatingRecipe
  • Field Summary

    Fields inherited from class org.openrewrite.Recipe

    contributors, examples, PANIC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    getInitialValue(org.openrewrite.ExecutionContext ctx)
     
     
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
     
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
     

    Methods inherited from class org.openrewrite.ScanningRecipe

    generate, generate, getAccumulator, getVisitor

    Methods inherited from class org.openrewrite.Recipe

    addDataTable, builder, buildRecipeList, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, onComplete, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait