mirror of
https://github.com/usbharu/http-signature.git
synced 2026-09-26 12:21:09 +00:00
chore: Giteaにもライブラリを公開できるように
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import org.apache.tools.ant.taskdefs.email.Header
|
||||
|
||||
plugins {
|
||||
kotlin("jvm") version "1.9.0"
|
||||
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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user