This page is no longer maintained — Please continue to the home page at www.scala-lang.org

sbt Question: "Global" sbt configuration?

1 reply
Kenneth McDonald
Joined: 2009-01-11,
User offline. Last seen 42 years 45 weeks ago.

Any recommendations on how to best achieve "global" sbt configuration, such as defining tasks that can be seen by all projects? I could have a new project for such tasks (not a bad idea anyway), and ensure that the jar for that project is on the CLASSPATH, but was wondering if there are better ways.

Thanks,
Ken

Rodrigo Cano
Joined: 2009-03-22,
User offline. Last seen 42 years 45 weeks ago.
Re: sbt Question: "Global" sbt configuration?
You typically do that in a sbt plugin, then you use the plugin from any sbt project and mix in your traits. See here:
http://code.google.com/p/simple-build-tool/wiki/SbtPlugins

On Sun, Jan 23, 2011 at 4:51 PM, Kenneth McDonald <kenneth.m.mcdonald@sbcglobal.net> wrote:
Any recommendations on how to best achieve "global" sbt configuration, such as defining tasks that can be seen by all projects? I could have a new project for such tasks (not a bad idea anyway), and ensure that the jar for that project is on the CLASSPATH, but was wondering if there are better ways.

Thanks,
Ken

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland