Scripts/convention/src/main/kotlin/jf.maven-publish.gradle.kts

25 lines
605 B
Plaintext
Raw Normal View History

2022-10-06 19:30:52 +02:00
plugins {
id("jf.base")
2022-10-06 19:30:52 +02:00
`maven-publish`
}
publishing {
repositories {
mavenLocal()
if (project.hasProperty("maven")) {
maven {
url = uri(project.property("maven").toString())
name = "dynamic"
2022-11-01 18:04:34 +01:00
credentials(PasswordCredentials::class) {
username = System.getenv()["MAVEN_NAME"]
password = System.getenv()["MAVEN_TOKEN"]
2022-10-06 19:30:52 +02:00
}
authentication {
2022-11-01 18:04:34 +01:00
create<BasicAuthentication>("basic")
2022-10-06 19:30:52 +02:00
}
}
}
}
}