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
ConstructorsConstructorDescriptionPublishTaskTransformerAction(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 TypeMethodDescriptionvoidexecute(org.gradle.api.Project project) Executes this publish task transformer action on the given project.
-
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 configurationresolvedDependenciesRepository- 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:
executein interfaceorg.gradle.api.Action<org.gradle.api.Project>- Parameters:
project- the project
-