publishing to forgeJo

This commit is contained in:
Jörg Prante 2023-05-22 21:24:34 +02:00
parent 0c2eaad86f
commit 8413abb16c
2 changed files with 6 additions and 5 deletions

View file

@ -39,4 +39,5 @@ apply from: rootProject.file('gradle/quality/checkstyle.gradle')
apply from: rootProject.file('gradle/quality/pmd.gradle')
apply from: rootProject.file('gradle/quality/spotbugs.gradle')
apply from: rootProject.file('gradle/publish/maven.gradle')
apply from: rootProject.file('gradle/publish/forgejo.gradle')
apply from: rootProject.file('gradle/publish/sonatype.gradle')

View file

@ -1,15 +1,15 @@
if (project.hasProperty("forgeJoToken")) {
if (project.hasProperty('forgeJoToken')) {
publishing {
repositories {
maven {
url 'https://xbib.org/api/packages/xbib/maven'
authentication {
basic(BasicAuthentication)
}
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token {forgeJoToken}"
value = "token ${project.getProperty('forgeJoToken')}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}