chore: Giteaにもライブラリを公開できるように
This commit is contained in:
parent
a26957bc6d
commit
dfbf1ca8ac
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue