chore: publishされない問題を修正

This commit is contained in:
usbharu 2023-10-19 10:36:42 +09:00
parent 96ada0043b
commit d2fad0bfff
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 13 additions and 6 deletions

View File

@ -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<HttpHeaderAuthentication>("header")
}
}
}
publications {
register<MavenPublication>("maven") {
groupId = "dev.usbharu"
artifactId = "http-signature"
version = project.version.toString()
from(components["kotlin"])
}
}
}