From d2fad0bfffb2aafa2b03a33da92054b902121ecd Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:36:42 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20publish=E3=81=95=E3=82=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b6b1b90..657a87b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,3 @@ -import org.apache.tools.ant.taskdefs.email.Header - plugins { kotlin("jvm") version "1.9.0" id("maven-publish") @@ -26,9 +24,9 @@ kotlin { } -publishing{ - repositories{ - maven{ +publishing { + repositories { + maven { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/usbharu/http-signature") credentials { @@ -47,9 +45,18 @@ publishing{ value = project.findProperty("gpr.gitea") as String? ?: System.getenv("GITEA") } - authentication{ + authentication { create("header") } } } + + publications { + register("maven") { + groupId = "dev.usbharu" + artifactId = "http-signature" + version = project.version.toString() + from(components["kotlin"]) + } + } }