What is the complete sbt command to build scala 2.12.16 distributable binary for *Nix system (macOS & Linux)?
Scala 2.12.16 source zip : https://github.com/scala/scala/archive/refs/tags/v2.12.16.zip
PS: sbt publishLocal
builds scala compiler of latest stable version and then publishes to local ivy2 repo. So it is not helpful for me.
CodePudding user response:
Thanks Seth Tisue for providing git repo information.
git repo for building scala distributable binary https://github.com/scala/scala-dist.git
sbt command universal:packageBin
Complete command to build scala 2.12.x binaries from sources:
git clone https://github.com/scala/scala-dist.git
cd scala-dist
git checkout 2.12.x
sbt clean universal:packageBin
after firing the above command binaries will be present in target/universal/scala-2.12.16.zip