Class AddDependency

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.java.dependencies.AddDependency
All Implemented Interfaces:
Cloneable

public class AddDependency extends org.openrewrite.Recipe
  • Field Summary

    Fields inherited from class org.openrewrite.Recipe

    contributors, examples, PANIC
  • Constructor Summary

    Constructors
    Constructor
    Description
    AddDependency(String groupId, String artifactId, @Nullable String version, @Nullable String versionPattern, String onlyIfUsing, @Nullable String classifier, @Nullable String familyPattern, @Nullable String extension, @Nullable String configuration, @Nullable String scope, @Nullable Boolean releasesOnly, @Nullable String type, @Nullable Boolean optional, @Nullable Boolean acceptTransitive)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    List<org.openrewrite.Recipe>
     

    Methods inherited from class org.openrewrite.Recipe

    addDataTable, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getJacksonPolymorphicTypeTag, getMaintainers, getName, getTags, getVisitor, hashCode, maxCycles, noop, run, run, run, setContributors, setExamples, validate, validate, validateAll

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AddDependency

      public AddDependency(String groupId, String artifactId, @Nullable @Nullable String version, @Nullable @Nullable String versionPattern, String onlyIfUsing, @Nullable @Nullable String classifier, @Nullable @Nullable String familyPattern, @Nullable @Nullable String extension, @Nullable @Nullable String configuration, @Nullable @Nullable String scope, @Nullable @Nullable Boolean releasesOnly, @Nullable @Nullable String type, @Nullable @Nullable Boolean optional, @Nullable @Nullable Boolean acceptTransitive)
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in class org.openrewrite.Recipe
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class org.openrewrite.Recipe
    • getRecipeList

      public List<org.openrewrite.Recipe> getRecipeList()
      Overrides:
      getRecipeList in class org.openrewrite.Recipe