16 lines
488 B
Groovy
16 lines
488 B
Groovy
if (project.hasProperty('forgeJoToken')) {
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
url 'https://xbib.org/api/packages/xbib/maven'
|
|
credentials(HttpHeaderCredentials) {
|
|
name = "Authorization"
|
|
value = "token ${project.property('forgeJoToken')}"
|
|
}
|
|
authentication {
|
|
header(HttpHeaderAuthentication)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|