mirror of
https://github.com/sbt/sbt.git
synced 2026-08-29 01:24:09 +02:00
add overload of addSbtPlugin for explicitly specifying the sbt cross-version
This commit is contained in:
@@ -1198,6 +1198,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): Setting[Seq[ModuleID]] =
|
||||
libraryDependencies <+= (scalaBinaryVersion in update) { scalaV => sbtPluginExtra(dependency, sbtVersion, scalaV) }
|
||||
def addSbtPlugin(dependency: ModuleID): Setting[Seq[ModuleID]] =
|
||||
libraryDependencies <+= (sbtBinaryVersion in update,scalaBinaryVersion in update) { (sbtV, scalaV) => sbtPluginExtra(dependency, sbtV, scalaV) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user