chore: publishされない問題を修正
This commit is contained in:
parent
96ada0043b
commit
d2fad0bfff
|
@ -1,5 +1,3 @@
|
||||||
import org.apache.tools.ant.taskdefs.email.Header
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm") version "1.9.0"
|
kotlin("jvm") version "1.9.0"
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
|
@ -26,9 +24,9 @@ kotlin {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
publishing{
|
publishing {
|
||||||
repositories{
|
repositories {
|
||||||
maven{
|
maven {
|
||||||
name = "GitHubPackages"
|
name = "GitHubPackages"
|
||||||
url = uri("https://maven.pkg.github.com/usbharu/http-signature")
|
url = uri("https://maven.pkg.github.com/usbharu/http-signature")
|
||||||
credentials {
|
credentials {
|
||||||
|
@ -47,9 +45,18 @@ publishing{
|
||||||
value = project.findProperty("gpr.gitea") as String? ?: System.getenv("GITEA")
|
value = project.findProperty("gpr.gitea") as String? ?: System.getenv("GITEA")
|
||||||
}
|
}
|
||||||
|
|
||||||
authentication{
|
authentication {
|
||||||
create<HttpHeaderAuthentication>("header")
|
create<HttpHeaderAuthentication>("header")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publications {
|
||||||
|
register<MavenPublication>("maven") {
|
||||||
|
groupId = "dev.usbharu"
|
||||||
|
artifactId = "http-signature"
|
||||||
|
version = project.version.toString()
|
||||||
|
from(components["kotlin"])
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue