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)
}
}

View file

@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.thauvin.erik</groupId>
<artifactId>pinboard-poster</artifactId>
<version>1.0.4</version>
<version>1.0.4-SNAPSHOT</version>
<name>pinboard-poster</name>
<description>Pinboard Poster for Kotlin/Java</description>
<url>https://github.com/ethauvin/pinboard-poster</url>

View file

@ -15,5 +15,5 @@ repositories {
}
dependencies {
implementation 'net.thauvin.erik:pinboard-poster:1.0.4'
implementation 'net.thauvin.erik:pinboard-poster:1.0.4-SNAPSHOT'
}

View file

@ -13,7 +13,7 @@ repositories {
}
dependencies {
implementation("net.thauvin.erik:pinboard-poster:1.0.4")
implementation("net.thauvin.erik:pinboard-poster:1.0.4-SNAPSHOT")
}
application {