Class UploadTaskTransformerAction

java.lang.Object
org.jboss.pnc.gradlemanipulator.manipulation.actions.UploadTaskTransformerAction
All Implemented Interfaces:
org.gradle.api.Action<org.gradle.api.Project>

public class UploadTaskTransformerAction extends Object implements org.gradle.api.Action<org.gradle.api.Project>
Fixes pom.xml generation in the old "maven" plugin.

Adds PomTransformer to all MavenResolver repositories in Upload tasks.

Gradle 7+ removed support for the old "maven" plugin. As such, this class uses reflection in order to build and run on Gradle 7+.

  • Constructor Summary

    Constructors
    Constructor
    Description
    UploadTaskTransformerAction(org.jboss.pnc.gradlemanipulator.common.model.ManipulationModel alignmentConfiguration, ResolvedDependenciesRepository resolvedDependenciesRepository)
    Creates a new upload task transformer action with the given alignment configuration and resolved dependencies repository.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(org.gradle.api.Project project)
    Executes this upload task transformer action on the given project.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UploadTaskTransformerAction

      public UploadTaskTransformerAction(org.jboss.pnc.gradlemanipulator.common.model.ManipulationModel alignmentConfiguration, ResolvedDependenciesRepository resolvedDependenciesRepository)
      Creates a new upload task transformer action with the given alignment configuration and resolved dependencies repository.
      Parameters:
      alignmentConfiguration - the alignment configuration
      resolvedDependenciesRepository - the resolved dependencies repository
  • Method Details

    • execute

      public void execute(org.gradle.api.Project project)
      Executes this upload task transformer action on the given project.
      Specified by:
      execute in interface org.gradle.api.Action<org.gradle.api.Project>
      Parameters:
      project - the project