mirror of https://github.com/sbt/sbt.git
Hide unary_! operator from API
This commit is contained in:
parent
5b1c33dd6e
commit
d697c10950
|
|
@ -82,7 +82,7 @@ abstract class AutoPlugin extends Plugins.Basic with PluginsFunctions
|
|||
|
||||
// TODO?: def commands: Seq[Command]
|
||||
|
||||
def unary_! : Exclude = Exclude(this)
|
||||
private[sbt] def unary_! : Exclude = Exclude(this)
|
||||
|
||||
|
||||
/** If this plugin does not have any requirements, it means it is actually a root plugin. */
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
// with S selected, Q is loaded automatically, which in turn selects R
|
||||
lazy val projA = project.addPlugins(S)
|
||||
|
||||
check := ()
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
import sbt._
|
||||
|
||||
object AI extends AutoImport
|
||||
{
|
||||
trait EmptyAutoPlugin extends AutoPlugin {
|
||||
def requires = empty
|
||||
def trigger = noTrigger
|
||||
}
|
||||
object A extends EmptyAutoPlugin
|
||||
object B extends EmptyAutoPlugin
|
||||
|
||||
lazy val check = settingKey[Unit]("Verifies settings are as they should be.")
|
||||
}
|
||||
|
||||
import AI._
|
||||
|
||||
object Q extends AutoPlugin
|
||||
{
|
||||
def requires: Plugins = A && B
|
||||
def trigger = allRequirements
|
||||
}
|
||||
|
||||
object R extends AutoPlugin
|
||||
{
|
||||
def requires = Q
|
||||
def trigger = allRequirements
|
||||
}
|
||||
|
||||
// This is an opt-in plugin with a requirement
|
||||
// Unless explicitly loaded by the build user, this will not be activated.
|
||||
object S extends AutoPlugin
|
||||
{
|
||||
def requires = Q && !R
|
||||
def trigger = noTrigger
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
-> check
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
// with S selected, Q is loaded automatically, which in turn selects R
|
||||
lazy val projA = project.addPlugins(S)
|
||||
|
||||
// S and T have direct conflicts of dependent plugins.
|
||||
lazy val projB = project.addPlugins(S, T)
|
||||
|
||||
check := ()
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
import sbt._
|
||||
|
||||
object AI extends AutoImport
|
||||
{
|
||||
trait EmptyAutoPlugin extends AutoPlugin {
|
||||
def requires = empty
|
||||
def trigger = noTrigger
|
||||
}
|
||||
object A extends EmptyAutoPlugin {
|
||||
val a = settingKey[String]("")
|
||||
override def projectSettings = Seq(a := "a")
|
||||
}
|
||||
object B extends EmptyAutoPlugin {
|
||||
val b = settingKey[String]("")
|
||||
override def projectSettings = Seq(b := "b")
|
||||
}
|
||||
|
||||
lazy val check = settingKey[Unit]("Verifies settings are as they should be.")
|
||||
}
|
||||
|
||||
import AI._
|
||||
|
||||
object Q extends AutoPlugin
|
||||
{
|
||||
def requires: Plugins = A && B
|
||||
def trigger = allRequirements
|
||||
val q = settingKey[String]("")
|
||||
override def projectSettings = Seq(q := "q")
|
||||
}
|
||||
|
||||
object R extends AutoPlugin
|
||||
{
|
||||
def requires = Q
|
||||
def trigger = allRequirements
|
||||
val r = settingKey[String]("")
|
||||
override def projectSettings = Seq(r := "r")
|
||||
}
|
||||
|
||||
// This is an opt-in plugin with a requirement
|
||||
// Unless explicitly loaded by the build user, this will not be activated.
|
||||
object S extends AutoPlugin
|
||||
{
|
||||
def requires = Q && !R
|
||||
def trigger = noTrigger
|
||||
val s = settingKey[String]("")
|
||||
override def projectSettings = Seq(s := "s")
|
||||
}
|
||||
|
||||
// This is an opt-in plugin with a requirement
|
||||
// Unless explicitly loaded by the build user, this will not be activated.
|
||||
object T extends AutoPlugin
|
||||
{
|
||||
def requires = A && !Q
|
||||
def trigger = noTrigger
|
||||
|
||||
val t = settingKey[String]("")
|
||||
override def projectSettings = Seq(t := "T")
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
-> check
|
||||
|
|
@ -59,7 +59,7 @@ object Q extends AutoPlugin
|
|||
object R extends AutoPlugin
|
||||
{
|
||||
// NOTE - Only plugins themselves support exclusions...
|
||||
def requires = Q && !D
|
||||
def requires = Q
|
||||
def trigger = allRequirements
|
||||
|
||||
override def projectSettings = Seq(
|
||||
|
|
|
|||
Loading…
Reference in New Issue