groovy-extensions/gradle/publish/forgejo.gradle

17 lines
489 B
Groovy
Raw Permalink Normal View History

2023-05-24 17:20:26 +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)
}
}
}
}
}