Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Global .sbt files for settings #52

n8han opened this Issue · 5 comments

4 participants


For global plugins it would be nice to have global, user-defined settings. For example, the posterous-sbt plugin has settings posterousEmail and posterousPassword that the user must define somewhere before sbt can boot with the plugin on the classpath.

Currently, the recommendation is for users to have a file ~/.sbt/plugins/user.scala that defines the settings manually:

import sbt._
import posterous.Publish._

object User extends Plugin {
  override def settings = Seq(
    posterousEmail := "",
    posterousPassword := "yourpassword"

Alternatively, you could define these in a user.sbt within every project:

posterousEmail := "",
posterousPassword := "yourpassword"

It would be great if we could place a file like this in ~/.sbt/ or some other location and have it be loaded for every project.


+1 on this. The CloudBees deployment plugin also needs something similar in terms of having that global configuration values which you wouldn't want to commit to the main build.sbt


Note that the need for this is not to keep things out of /build.sbt. You can easily create a /local.sbt that you don't check into version control. It is so that you only have to define the settings once.


Thanks for the clarification Mark, my wording was just poorly chosen there. The use case I have is identical to Nathans. Cheers

@harrah harrah closed this in 9737a30

@harrah what if you accidentally add and push local.sbt ?


@MasseGuillaume You can add it to .gitignore or use other version control hooks/techniques to avoid that. Note that this feature got implemented and it can be used to specify credentials or other user-global information as requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.