easy publishing

This commit is contained in:
ThatGamerBlue
2020-06-28 14:54:19 +01:00
committed by GitHub
parent e2bea45c6d
commit e7d62c3c33

View File

@@ -80,6 +80,15 @@ publishing {
maven { maven {
url = uri("$buildDir/repo") url = uri("$buildDir/repo")
} }
if (System.getenv("REPO_URL") != null) {
maven {
url = uri(System.getenv("REPO_URL"))
credentials {
username = System.getenv("REPO_USERNAME")
password = System.getenv("REPO_PASSWORD")
}
}
}
} }
publications { publications {
register("mavenJava", MavenPublication::class) { register("mavenJava", MavenPublication::class) {