Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Plugin should be able to write to Build.settings as well as Project.settings #378

Closed
harrah opened this Issue · 1 comment

1 participant

@harrah
Owner

It's becoming very apparent to me that Plugins should be able to write certain configuration to a 'global sbt' location. This is configuration that is core to a given computer, not any particular project.

I'd like to propose changing the trait Plugin to look like the following:

trait Plugin {
  @deprecated
  def settings: Seq[Project.Setting[_]] = projectSettings
  /** Settings to be appended to all projects in a build. */
  def projectSettings: Seq[Project.Setting[_]] = Seq.empty
  /** Settings to be appended to the build (global build-settings) */
  def buildSettings: Seq[Project.Setting[_]] = Seq.empty
}

As well as loading the buildSettings of all plugins and appending them to a Build's settings value.

If I had this ability, a lot of my plugins could most likely be used with no configuration beyond inclusion.

@harrah
Owner

IMPORTANT This project has moved to https://github.com/sbt/sbt. This issue still exists to avoid dead links, but GitHub limitations prevent the original issue from being correctly preserved here. Please see sbt/sbt#378 for the full issue and to comment.

@harrah harrah closed this
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.