Use snapshot repo for dev releases (#241)

This commit is contained in:
Matt
2021-02-23 15:07:43 -05:00
committed by GitHub
parent b653fc7db1
commit f3d3a59ca0
2 changed files with 2 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ ext {
opencvVersion = "3.4.7-5"
joglVersion = "2.4.0-rc-20200307"
pubVersion = versionString
isDev = pubVersion.startsWith("dev")
}
spotless {

View File

@@ -136,7 +136,7 @@ publishing {
url = releasesRepoUrl
}
maven {
url 'https://maven.photonvision.org/repository/internal'
url ('https://maven.photonvision.org/repository/' + (isDev ? 'snapshots' : 'internal'))
credentials {
username 'ghactions'
password System.getenv("ARTIFACTORY_API_KEY")