16 lines
476 B
Groovy
16 lines
476 B
Groovy
if (project.hasProperty('forgeJoToken')) {
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
url project.property('forgeJoUrl')
|
|
credentials(HttpHeaderCredentials) {
|
|
name = "Authorization"
|
|
value = "token ${project.property('forgeJoToken')}"
|
|
}
|
|
authentication {
|
|
header(HttpHeaderAuthentication)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|