Class MavenPublishingRepositoryAction
- java.lang.Object
-
- org.jboss.gm.manipulation.actions.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) } } } }
-
-
Constructor Summary
Constructors Constructor Description MavenPublishingRepositoryAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.gradle.api.Project project)
-