Skip to content

sbt project that packages the Scala 2 distribution

License

Notifications You must be signed in to change notification settings

scala/scala-dist

Folders and files

NameName
Last commit message
Last commit date
Jan 6, 2025
Jun 28, 2021
Mar 28, 2018
Jan 7, 2025
Jun 15, 2021
Jan 7, 2025
May 22, 2013
Oct 16, 2022
Apr 23, 2019
Feb 20, 2019
Jan 6, 2025
Dec 20, 2024
Jun 9, 2021
Jun 28, 2021

Repository files navigation

Scala 2.13 Distribution

This project morphs the "org.scala-lang" % "scala-dist" % $version maven artifact into a Scala $version distribution (zip, tar.gz, deb, rpm, and msi).

To build a distribution, run:

  • Universal/packageBin - Builds the universal zip installer
  • UniversalDocs/packageBin - Builds the universal documentation zip
  • Debian/packageBin - Builds the Debian DEB file. requires dpkg-deb
  • Rpm/packageBin - Builds the yum RPM file. requires rpmbuild
  • Windows/packageBin - Builds the Windows MSI. requires WiX 3.6

Alternatively, the s3Upload task's mappings are configured based on the platform the installer is running on. On Windows, it builds the MSI; on another platform, it'll create and upload the other packages in the above list. (Use s3Upload/mappings for a dry-run.)

The version of Scala to package is derived from the most recent git tag, or you can specify it using -Dproject.version.

Windows VM

  • install Windows 7 professional N 64-bit, ensure network access to GitHub
  • install Oracle Java 6 JDK
  • install WiX v3.6 (reboot!)
  • download sbt launcher from xsbt.org to c:\users\jenkins\Downloads
  • install Git
  • configure the Jenkins master's tool locations for
    • HOME
    • JDK path
    • Git (path of git.exe)
    • sbt launch jar

Contributing

Please sign the CLA.

The branching structure mimics that of scala/scala; there are branches for 2.12.x and 2.13.x.