net-ldap/gradle/publish/forgejo.gradle

17 lines
489 B
Groovy
Raw Permalink Normal View History

2024-08-05 23:28:21 +02:00
if (project.hasProperty('forgeJoToken')) {
publishing {
repositories {
maven {
url 'https://xbib.org/api/packages/joerg/maven'
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${project.property('forgeJoToken')}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
}