mirror of https://github.com/sbt/sbt.git
allow specifying Scala version for sbt plugin in addSbtVersion
This commit is contained in:
parent
1eef9e660a
commit
4de26c1195
|
|
@ -1225,6 +1225,8 @@ trait BuildExtra extends BuildCommon
|
|||
def compose(setting: SettingKey[State => State], f: State => State) = setting in Global ~= (_ compose f)
|
||||
Seq( compose(onLoad, add), compose(onUnload, remove) )
|
||||
}
|
||||
def addSbtPlugin(dependency: ModuleID, sbtVersion: String, scalaVersion: String): Setting[Seq[ModuleID]] =
|
||||
libraryDependencies += sbtPluginExtra(dependency, sbtVersion, scalaVersion)
|
||||
def addSbtPlugin(dependency: ModuleID, sbtVersion: String): Setting[Seq[ModuleID]] =
|
||||
libraryDependencies <+= (scalaBinaryVersion in update) { scalaV => sbtPluginExtra(dependency, sbtVersion, scalaV) }
|
||||
def addSbtPlugin(dependency: ModuleID): Setting[Seq[ModuleID]] =
|
||||
|
|
|
|||
Loading…
Reference in New Issue