mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 08:34:34 +02:00
6ba3afbef739da2ead8b631c5b138de1fe22649e
It was reported in https://github.com/sbt/sbt/issues/4973 that the scalaVersion setting was not being correctly set in a script running with ScriptMain using 1.3.0-RC4. Using git bisect, I found that the issue was introduced in https://github.com/sbt/sbt/commit/73cfd7c8bdd484b49ff6695ef006f5f7ba995c0b. That commit manipulates the classloaders passed in by the launcher, but only for the xMain entry point. I found that the script ran correctly if I updated the classloader for ScriptedMain as well. After these changes, the example script in #4973 correctly prints 2.13.0 for the scala version with a locally published sbt. Bonus: rename xMainImpl object xMain. It was private[sbt] anyway.
sbt
sbt is a build tool for Scala, Java, and more.
For general documentation, see http://www.scala-sbt.org/.
sbt 1.x
This is the 1.x series of sbt. The source code of sbt is split across several GitHub repositories, including this one.
- sbt/io hosts
sbt.iomodule. - sbt/util hosts a collection of internally used modules.
- sbt/librarymanagement hosts
sbt.librarymanagementmodule that wraps Ivy. - sbt/zinc hosts Zinc, an incremental compiler for Scala.
- sbt/sbt, this repository hosts modules that implements the build tool.
Other links
- Setup: Describes getting started with the latest binary release.
- FAQ: Explains how to get help and more.
- sbt/sbt-zero-seven: hosts sbt 0.7.7 and earlier versions
Issues and Pull Requests
Please read CONTRIBUTING carefully before opening a GitHub Issue.
The short version: try searching or asking on StackOverflow.
license
See LICENSE.
Languages
Scala
94.5%
Java
3.1%
Shell
1.1%
Batchfile
0.9%
Roff
0.2%
Other
0.1%