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
+22 -18
+22 -18
View File
@@ -108,26 +108,30 @@ subprojects {
publishing { publishing {
repositories { repositories {
maven { if (System.getenv("RELEASES_MAVEN_USERNAME") != null) {
name = "william278-releases" maven {
url = "https://repo.william278.net/releases" name = "william278-releases"
credentials { url = "https://repo.william278.net/releases"
username = System.getenv("RELEASES_MAVEN_USERNAME") credentials {
password = System.getenv("RELEASES_MAVEN_PASSWORD") username = System.getenv("RELEASES_MAVEN_USERNAME")
} password = System.getenv("RELEASES_MAVEN_PASSWORD")
authentication { }
basic(BasicAuthentication) authentication {
basic(BasicAuthentication)
}
} }
} }
maven { if (System.getenv("SNAPSHOTS_MAVEN_USERNAME") != null) {
name = "william278-snapshots" maven {
url = "https://repo.william278.net/snapshots" name = "william278-snapshots"
credentials { url = "https://repo.william278.net/snapshots"
username = System.getenv("SNAPSHOTS_MAVEN_USERNAME") credentials {
password = System.getenv("SNAPSHOTS_MAVEN_PASSWORD") username = System.getenv("SNAPSHOTS_MAVEN_USERNAME")
} password = System.getenv("SNAPSHOTS_MAVEN_PASSWORD")
authentication { }
basic(BasicAuthentication) authentication {
basic(BasicAuthentication)
}
} }
} }
} }