Class ManipulationPlugin

java.lang.Object
org.jboss.pnc.gradlemanipulator.manipulation.ManipulationPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class ManipulationPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
The manipulation plugin.
  • Field Details

    • LEGACY_MAVEN_PLUGIN

      public static final String LEGACY_MAVEN_PLUGIN
      The name of the legacy maven plugin, i.e., "maven".
      See Also:
    • MAVEN_PUBLISH_PLUGIN

      public static final String MAVEN_PUBLISH_PLUGIN
      The name of the maven publish plugin, i.e., "maven-publish".
      See Also:
  • Constructor Details

    • ManipulationPlugin

      public ManipulationPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Applies the manipulation plugin to the given project.
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>
      Parameters:
      project - the project
    • disableSigning

      public static void disableSigning(org.gradle.api.logging.Logger logger, org.gradle.api.Project project)
      Helper function to disable signing. Move the call to disable signing plugin into the publishing task actions to avoid issues when a publishing plugin that isn't natively configured but a later injection adds publishing and triggers the signing injection.
      Parameters:
      logger - the current logger
      project - the current project