chore: Giteaにもライブラリを公開できるように

This commit is contained in:
usbharu 2023-10-19 10:13:43 +09:00
parent a26957bc6d
commit dfbf1ca8ac
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,5 @@
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")
@ -35,4 +37,19 @@ publishing{
} }
} }
} }
repositories {
maven {
name = "Gitea"
url = uri("https://git.usbharu.dev/api/packages/usbharu/maven")
credentials(HttpHeaderCredentials::class.java) {
name = "Authorization"
value = project.findProperty("gpr.gitea") as String? ?: System.getenv("GITEA")
}
authentication{
create<HttpHeaderAuthentication>("header")
}
}
}
} }