mirror of https://github.com/sbt/sbt.git
Drop deprecated seq method
This commit is contained in:
parent
4ef5e85390
commit
01b19f0218
|
|
@ -2415,10 +2415,6 @@ trait BuildExtra extends BuildCommon with DefExtra {
|
|||
Seq(artLocal := artifact.value, taskLocal := taskDef.value, art, pkgd)
|
||||
}
|
||||
|
||||
// because this was commonly used, this might need to be kept longer than usual
|
||||
@deprecated("In build.sbt files, this call can be removed. In other cases, this can usually be replaced by Seq.", "0.13.0")
|
||||
def seq(settings: Setting[_]*): SettingsDefinition = new Def.SettingList(settings)
|
||||
|
||||
def externalIvySettings(file: Initialize[File] = inBase("ivysettings.xml"), addMultiResolver: Boolean = true): Setting[Task[IvyConfiguration]] =
|
||||
externalIvySettingsURI(file(_.toURI), addMultiResolver)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import sbt.internal.librarymanagement.syntax._
|
||||
|
||||
seq(externalIvySettings(), externalIvyFile())
|
||||
Seq(externalIvySettings(), externalIvyFile())
|
||||
|
||||
TaskKey[Unit]("check") := {
|
||||
val files = update.value.matching( moduleFilter(organization = "org.scalacheck", name = "scalacheck*", revision = "1.11.4") )
|
||||
assert(files.nonEmpty, "ScalaCheck module not found in update report")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
{
|
||||
val loadCount = AttributeKey[Int]("load-count")
|
||||
val unloadCount = AttributeKey[Int]("unload-count")
|
||||
|
|
@ -7,9 +5,9 @@
|
|||
val previous = s get key getOrElse 0
|
||||
s.put(key, previous + 1)
|
||||
}
|
||||
seq(
|
||||
onLoad in Global ~= (f(loadCount) compose _),
|
||||
onUnload in Global ~= (f(unloadCount) compose _)
|
||||
Seq(
|
||||
onLoad in Global ~= (f(loadCount) compose _),
|
||||
onUnload in Global ~= (f(unloadCount) compose _)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue