Skip to content

[MNG-7885] Plugin dependencies should be part in dependency management #9034

Description

@jira-importer

Lars Uffmann opened MNG-7885 and commented

It would be a great improvement in dependency management if plugin dependencies could be part of the standard dependency management resolution. In the example below I could manage the version of the rewrite-maven-plugin using pluginManagement, the version of the rewrite-spring plugin dependency however has to be set in place.

 

 

<build>
  <plugins>
    <plugin>
      <groupId>org.openrewrite.maven</groupId>
      <artifactId>rewrite-maven-plugin</artifactId>
      <configuration>
        <activeRecipes>
          <recipe>org.openrewrite.java.spring.boot2.SpringBoot2JUnit4to5Migration</recipe>
        </activeRecipes>
      </configuration>
      <dependencies>
        <dependency>
          <groupId>org.openrewrite.recipe</groupId>
          <artifactId>rewrite-spring</artifactId>
          <version>4.35.0</version>
        </dependency>
      </dependencies>
    </plugin>
  </plugins>
<build>

 

 

Other plugins are using special configurations to declare extra dependencies. The version. management issue however is the same. A good example is   
annotationProcessorPaths of the compiler plugin.


Issue Links:

  • MCOMPILER-391 annotationProcessorPaths have to follow dependencyManagement rules

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions