database/gradle/publish/forgejo.gradle
2024-07-22 17:01:57 +02:00

16 lines
476 B
Groovy

if (project.hasProperty('forgeJoToken')) {
publishing {
repositories {
maven {
url project.property('forgeJoUrl')
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${project.property('forgeJoToken')}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
}