http-signature/build.gradle.kts

56 lines
1.3 KiB
Plaintext
Raw Normal View History

import org.apache.tools.ant.taskdefs.email.Header
2023-10-16 15:09:06 +00:00
plugins {
kotlin("jvm") version "1.9.0"
id("maven-publish")
2023-10-16 15:09:06 +00:00
}
group = "dev.usbharu"
version = "1.0.0"
2023-10-16 15:09:06 +00:00
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
2023-10-17 04:10:24 +00:00
testImplementation("org.mockito:mockito-inline:5.2.0")
2023-10-16 15:09:06 +00:00
}
tasks.test {
useJUnitPlatform()
}
kotlin {
2023-10-17 04:10:24 +00:00
jvmToolchain(11)
2023-10-16 15:09:06 +00:00
}
publishing{
repositories{
maven{
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/usbharu/http-signature")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
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")
}
}
}
2023-10-16 15:09:06 +00:00
}