'SBT release plugin creates SNAPSHOT jar
My jenkins job run the below command , but it's generating SNAPSHOT jar only.
sbt 'set isSnapshot := false' 'set releaseIgnoreUntrackedFiles := true' 'release skip-tests with-defaults'
Here is my publish.sbt file
import sbtrelease._
import sbtrelease.ReleaseStateTransformations._
publishTo := {
val nexus = "https://repository.xyz.com/content/repositories/"
if (isSnapshot.value)
Some("snapshots" at nexus + "snapshots/my_project/")
else
Some("releases" at nexus + "releases/my_project/")
}
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
pushChanges
)
releaseIgnoreUntrackedFiles := true
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
