From 90a2769fb768ed8c86f09a60404c9d6d2ba4418b Mon Sep 17 00:00:00 2001 From: Jesse Brault Date: Mon, 30 Jun 2025 08:04:54 -0500 Subject: [PATCH] Remove jbArchiva plugin and switch to Gitea maven. --- buildSrc/src/main/groovy/ssg-common.gradle | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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) + } + } + } +}