Class PublishTaskTransformerAction

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

public class PublishTaskTransformerAction extends Object implements org.gradle.api.Action<org.gradle.api.Project>
Fixes pom.xml generation in "maven-publish" plugin.

Applies PomTransformer, that overrides dependencies versions according to given configuration, to all maven publications.

  • Constructor Summary

    Constructors
    Constructor
    Description
    PublishTaskTransformerAction(org.jboss.pnc.gradlemanipulator.common.model.ManipulationModel alignmentConfiguration, ResolvedDependenciesRepository resolvedDependenciesRepository)
    Creates a new publish 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 publish 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

    • PublishTaskTransformerAction

      public PublishTaskTransformerAction(org.jboss.pnc.gradlemanipulator.common.model.ManipulationModel alignmentConfiguration, ResolvedDependenciesRepository resolvedDependenciesRepository)
      Creates a new publish 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 publish task transformer action on the given project.
      Specified by:
      execute in interface org.gradle.api.Action<org.gradle.api.Project>
      Parameters:
      project - the project