diff --git a/buildSrc/src/main/groovy/ssg-common.gradle b/buildSrc/src/main/groovy/ssg-common.gradle index 839e8b1..c0e1f85 100644 --- a/buildSrc/src/main/groovy/ssg-common.gradle +++ b/buildSrc/src/main/groovy/ssg-common.gradle @@ -1,6 +1,6 @@ plugins { - id 'com.jessebrault.jbarchiva' id 'java' + id 'maven-publish' } group 'com.jessebrault.ssg' @@ -47,3 +47,21 @@ testing { } } } + +publishing { + repositories { + maven { + name = 'Gitea' + url = uri('https://git.jessebrault.com/api/packages/jessebrault/maven') + + credentials(HttpHeaderCredentials) { + name = "Authorization" + value = "token ${System.getenv("GITEA_ACCESS_TOKEN")}" + } + + authentication { + header(HttpHeaderAuthentication) + } + } + } +}