database/gradle/publish/forgejo.gradle

17 lines
476 B
Groovy
Raw Normal View History

2023-05-26 11:29:21 +02:00
if (project.hasProperty('forgeJoToken')) {
publishing {
repositories {
maven {
2024-07-22 17:01:57 +02:00
url project.property('forgeJoUrl')
2023-05-26 11:29:21 +02:00
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${project.property('forgeJoToken')}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
}