Publish subprojects correctly

This commit is contained in:
Frank van der Heijden 2021-10-05 19:54:05 +02:00
parent 9656e98f94
commit c6d1c10b6c
No known key found for this signature in database
GPG key ID: B808721C2DD5B5B8

View file

@ -96,7 +96,11 @@ subprojects {
repositories { repositories {
maven { maven {
name = "fvdh" name = "fvdh"
url = uri("https://repo.fvdh.dev/test") url = if (version.toString().endsWith("-SNAPSHOT")) {
uri("https://repo.fvdh.dev/snapshots")
} else {
uri("https://repo.fvdh.dev/releases")
}
credentials { credentials {
username = System.getenv("FVDH_USERNAME") username = System.getenv("FVDH_USERNAME")