mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 08:30:07 -03:00
build: Fix artifact release code
This commit is contained in:
parent
f3446a3f10
commit
3db3b2702a
@ -55,9 +55,10 @@ addArtifact(artifact in (Compile, assembly), assembly)
|
||||
|
||||
isSnapshot := version.value endsWith "SNAPSHOT"
|
||||
|
||||
publishTo := Some(
|
||||
publishTo := {
|
||||
val nexus = "https://oss.sonatype.org/"
|
||||
if (isSnapshot.value)
|
||||
"snapshots" at nexus + "content/repositories/snapshots"
|
||||
Some("snapshots" at nexus + "content/repositories/snapshots")
|
||||
else
|
||||
"releases" at nexus + "service/local/staging/deploy/maven2"
|
||||
)
|
||||
Some("releases" at nexus + "service/local/staging/deploy/maven2")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user