publishing to forgeJo
This commit is contained in:
parent
0c2eaad86f
commit
8413abb16c
2 changed files with 6 additions and 5 deletions
|
@ -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/pmd.gradle')
|
||||||
apply from: rootProject.file('gradle/quality/spotbugs.gradle')
|
apply from: rootProject.file('gradle/quality/spotbugs.gradle')
|
||||||
apply from: rootProject.file('gradle/publish/maven.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')
|
apply from: rootProject.file('gradle/publish/sonatype.gradle')
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
|
|
||||||
if (project.hasProperty("forgeJoToken")) {
|
if (project.hasProperty('forgeJoToken')) {
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url 'https://xbib.org/api/packages/xbib/maven'
|
url 'https://xbib.org/api/packages/xbib/maven'
|
||||||
authentication {
|
|
||||||
basic(BasicAuthentication)
|
|
||||||
}
|
|
||||||
credentials(HttpHeaderCredentials) {
|
credentials(HttpHeaderCredentials) {
|
||||||
name = "Authorization"
|
name = "Authorization"
|
||||||
value = "token {forgeJoToken}"
|
value = "token ${project.getProperty('forgeJoToken')}"
|
||||||
|
}
|
||||||
|
authentication {
|
||||||
|
header(HttpHeaderAuthentication)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue