Class PublishingArtifactsAction

  • All Implemented Interfaces:
    org.gradle.api.Action<org.gradle.api.Project>

    public class PublishingArtifactsAction
    extends java.lang.Object
    implements org.gradle.api.Action<org.gradle.api.Project>

    Configures maven-publish plugin publications.

    Equivalent to following gradle snippet:

     publishing {
       publications {
         mavenJava(MavenPublication) {
           from components.java
         }
       }
     }
     
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.gradle.api.Project project)  
      • Methods inherited from class java.lang.Object

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

      • PublishingArtifactsAction

        public PublishingArtifactsAction()
    • Method Detail

      • execute

        public void execute​(org.gradle.api.Project project)
        Specified by:
        execute in interface org.gradle.api.Action<org.gradle.api.Project>