Added support for snapshot.
This commit is contained in:
parent
8506460961
commit
74aaaf26cd
2 changed files with 8 additions and 4 deletions
|
@ -149,7 +149,11 @@ publishing {
|
|||
repositories {
|
||||
maven {
|
||||
name = "ossrh"
|
||||
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||
project.afterEvaluate {
|
||||
url = project.version.contains("SNAPSHOT")
|
||||
? "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||
}
|
||||
credentials(PasswordCredentials)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue