jacc/gradle/publish/forgejo.gradle

17 lines
489 B
Groovy
Raw Permalink Normal View History

2023-05-24 14:11:26 +02:00
if (project.hasProperty('forgeJoToken')) {
publishing {
repositories {
maven {
2023-05-24 16:36:47 +02:00
url 'https://xbib.org/api/packages/joerg/maven'
2023-05-24 14:11:26 +02:00
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${project.property('forgeJoToken')}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
}