From 6d96e91f944cebbcf7c39a31f806d9fec32efd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Wed, 24 May 2023 17:20:26 +0200 Subject: [PATCH] update forgejo repo --- build.gradle | 11 ++++++----- gradle/publish/forgejo.gradle | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 gradle/publish/forgejo.gradle diff --git a/build.gradle b/build.gradle index 7852b0d..154b326 100644 --- a/build.gradle +++ b/build.gradle @@ -16,14 +16,14 @@ wrapper { } ext { - user = 'jprante' + user = 'joerg' name = 'groovy-extensions' description = 'Groovy extensions' inceptionYear = '2021' - url = 'https://github.com/' + user + '/' + name - scmUrl = 'https://github.com/' + user + '/' + name - scmConnection = 'scm:git:git://github.com/' + user + '/' + name + '.git' - scmDeveloperConnection = 'scm:git:ssh://git@github.com:' + user + '/' + name + '.git' + url = 'https://xbib.org/' + user + '/' + name + scmUrl = 'https://xbib.org/' + user + '/' + name + scmConnection = 'scm:git:git://xbib.org/' + user + '/' + name + '.git' + scmDeveloperConnection = 'scm:git:ssh://forgejo@xbib.org:' + user + '/' + name + '.git' issueManagementSystem = 'Github' issueManagementUrl = ext.scmUrl + '/issues' licenseName = 'The Apache License, Version 2.0' @@ -37,4 +37,5 @@ subprojects { apply from: rootProject.file('gradle/repositories/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') diff --git a/gradle/publish/forgejo.gradle b/gradle/publish/forgejo.gradle new file mode 100644 index 0000000..b99b2fb --- /dev/null +++ b/gradle/publish/forgejo.gradle @@ -0,0 +1,16 @@ +if (project.hasProperty('forgeJoToken')) { + publishing { + repositories { + maven { + url 'https://xbib.org/api/packages/joerg/maven' + credentials(HttpHeaderCredentials) { + name = "Authorization" + value = "token ${project.property('forgeJoToken')}" + } + authentication { + header(HttpHeaderAuthentication) + } + } + } + } +}