formconductor/scripts/publish-root.gradle.kts

56 lines
1.7 KiB
Kotlin

configure<JavaPluginExtension> {
withSourcesJar()
withJavadocJar()
}
configure<PublishingExtension> {
publications.withType<MavenPublication>().configureEach {
group = project.group
version = project.version.toString()
pom {
name = artifactId
description = "Declarative form validation library for Jetpack Compose"
url = "https://code.thetadev.de/ThetaDev/formconductor"
licenses {
license {
name = "MIT"
url = "https://opensource.org/licenses/MIT"
}
}
scm {
connection = "scm:git@code.thetadev.de/ThetaDev/formconductor.git"
url = "https://code.thetadev.de/ThetaDev/formconductor"
}
developers {
developer {
id = "NaingAungLuu"
name = "Naing Aung Luu"
email = "naingaunglu01@gmail.com"
url = "https://github.com/NaingAungLuu"
}
developer {
id = "ThetaDev"
name = "ThetaDev"
url = "https://thetadev.de"
}
}
}
}
repositories {
maven {
name = "ThetaDev"
url = uri("https://code.thetadev.de/api/packages/ThetaDev/maven")
credentials(HttpHeaderCredentials::class) {
name = "Authorization"
value = "token ${System.getenv("FORGEJO_TOKEN")}"
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
}