replacement launcher for 0.11.3 (and earlier)

285 views
Skip to first unread message

Mark Harrah

unread,
May 27, 2012, 8:34:50 PM5/27/12
to simple-b...@googlegroups.com
I've published what should be a drop-in replacement for the 0.11.3 launcher[1]. This launcher should be able to launch any version of sbt (back to 0.7) according to the sbt.version specified in project/build.properties. It will default to 0.11.3 if no project/build.properties exists.

This retroactively fixes scala-tools issues for the launcher (when retrieving Scala or sbt) for the supported versions, but it cannot change the default resolvers used for a build. For builds that wish to continue to use older versions of sbt, override externalResolvers to exclude scala-tools[2].

Once again, if users can test and confirm this works, we'll link to this launcher instead of the original 0.11.3 launcher.

Thanks,
Mark

[1] http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.11.3-2/sbt-launch.jar
[2] For 0.10+,

externalResolvers <<= resolvers map { rs =>
Resolver.withDefaultResolvers(rs, mavenCentral = true, scalaTools = false)
}

dave

unread,
May 29, 2012, 10:48:39 AM5/29/12
to simple-b...@googlegroups.com
Excellent! One launcher to rule them all. This will make life much simpler.

Will future launchers also be backward compatible? That would greatly help those times when we have to dig into old code that uses older versions of sbt.

dave

Mark Harrah

unread,
Jun 2, 2012, 7:28:33 PM6/2/12
to simple-b...@googlegroups.com
Hi Dave,

On Tue, 29 May 2012 07:48:39 -0700 (PDT)
dave <leed...@yahoo.com> wrote:

> Excellent! One launcher to rule them all. This will make life much simpler.
>
> Will future launchers also be backward compatible? That would greatly help
> those times when we have to dig into old code that uses older versions of
> sbt.

Yes, that is the idea.

Note that the launcher code itself has always been backward compatible. If you give the 0.11.3 launcher the configuration file for 0.7.7, it should launch it ok. The problem has been the default configuration file has changed and doesn't work with different versions. This latest change allows different configuration files to be used as appropriate.

-Mark
Reply all
Reply to author
Forward
0 new messages