Class MavenPublishingRepositoryAction

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

    public class MavenPublishingRepositoryAction
    extends java.lang.Object
    implements org.gradle.api.Action<org.gradle.api.Project>
    Adds a publishing repository specific to PNC environment.

    System properties "AProxDeployUrl" and "accessToken" has to be defined during build.

    Is equivalent to following gradle snippet:

     publishing {
             repositories {
                 maven {
                     name = "PNC"
                     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

      • MavenPublishingRepositoryAction

        public MavenPublishingRepositoryAction()
    • Method Detail

      • execute

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