Scripts/convention/src/main/kotlin/jf.maven-publish.gradle.kts
JFronny 326fa7eba6
All checks were successful
ci/woodpecker/push/pages Pipeline was successful
ci/woodpecker/push/gradle Pipeline was successful
Tweak auth
2022-11-01 18:04:34 +01:00

24 lines
587 B
Plaintext

plugins {
`maven-publish`
}
publishing {
repositories {
mavenLocal()
if (project.hasProperty("maven")) {
maven {
url = uri(project.property("maven").toString())
name = "dynamic"
credentials(PasswordCredentials::class) {
username = System.getenv()["MAVEN_NAME"]
password = System.getenv()["MAVEN_TOKEN"]
}
authentication {
create<BasicAuthentication>("basic")
}
}
}
}
}