Skip to content

Commit

Permalink
Add snapshot repository
Browse files Browse the repository at this point in the history
  • Loading branch information
pSub committed Sep 9, 2021
1 parent 5cd60dd commit 5fcd4b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gradle-plugin/build.gradle
Expand Up @@ -33,7 +33,13 @@ publishing {
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"

if(project.version.endsWith('-SNAPSHOT')) {
url "https://oss.sonatype.org/content/repositories/snapshots"
} else {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}

credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
Expand Down

0 comments on commit 5fcd4b1

Please sign in to comment.