datastructures/gradle/publish/forgejo.gradle
Jörg Prante 4960f8cdb4
Some checks are pending
CodeQL / Analyze (push) Waiting to run
clean up build parameters
2024-07-21 22:05:54 +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)
}
}
}
}
}