public class MavenPublishingRepositoryAction
extends java.lang.Object
implements org.gradle.api.Action<org.gradle.api.Project>
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 and Description |
|---|
MavenPublishingRepositoryAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.gradle.api.Project project) |