Added support for snapshot.

This commit is contained in:
Erik C. Thauvin 2021-05-02 20:33:55 -07:00
parent b984f54a8d
commit 563af5b436
4 changed files with 7 additions and 5 deletions

View file

@ -13,7 +13,7 @@ plugins {
}
group = "net.thauvin.erik"
version = "1.0.4"
version = "1.0.4-SNAPSHOT"
description = "Pinboard Poster for Kotlin/Java"
val gitHub = "ethauvin/$name"
@ -188,7 +188,9 @@ publishing {
repositories {
maven {
name = "ossrh"
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
url = if (project.version.toString().contains("SNAPSHOT"))
uri("https://oss.sonatype.org/content/repositories/snapshots/") else
uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials(PasswordCredentials::class)
}
}