event/gradle/publish/forgejo.gradle

17 lines
489 B
Groovy
Raw Permalink Normal View History

2023-10-01 16:04:07 +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)
}
}
}
}
}