Class LegacyMavenPublishingRepositoryAction

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

    public class LegacyMavenPublishingRepositoryAction
    extends java.lang.Object
    implements org.gradle.api.Action<org.gradle.api.Project>
    Adds a publication repository to the legacy maven plugin. Repository URL and authentication token need to be configured externally. Performed configuration is equivalent to following gradle snippet:
         uploadArchives {
             repositories {
                 maven {
                     url = System.getProperty('AProxDeployUrl')
                     credentials(HttpHeaderCredentials) {
                         name = "Authorization"
                         value = "Bearer " + System.getProperty('accessToken')
                     }
                     authentication {
                         header(HttpHeaderAuthentication)
                     }
                 }
             }
         }
     
    • 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

      • LegacyMavenPublishingRepositoryAction

        public LegacyMavenPublishingRepositoryAction()
    • Method Detail

      • execute

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