Only publish to specified repos

This commit is contained in:
William committed 2023-05-07 22:35:43 +01:00
1 parent e60964ac24
commit b9ecc20480
1 file changed
+4
+4
View File
@@ -108,6 +108,7 @@ subprojects {
publishing {
repositories {
if (System.getenv("RELEASES_MAVEN_USERNAME") != null) {
maven {
name = "william278-releases"
url = "https://repo.william278.net/releases"
@@ -119,6 +120,8 @@ subprojects {
basic(BasicAuthentication)
}
}
}
if (System.getenv("SNAPSHOTS_MAVEN_USERNAME") != null) {
maven {
name = "william278-snapshots"
url = "https://repo.william278.net/snapshots"
@@ -131,6 +134,7 @@ subprojects {
}
}
}
}
publications {
mavenJava(MavenPublication) {