Hide unary_! operator from API

This commit is contained in:
Eugene Yokota 2014-03-24 18:59:14 -04:00
parent 5b1c33dd6e
commit d697c10950
8 changed files with 2 additions and 108 deletions

View File

@ -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. */

View File

@ -1,4 +0,0 @@
// with S selected, Q is loaded automatically, which in turn selects R
lazy val projA = project.addPlugins(S)
check := ()

View File

@ -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
}

View File

@ -1 +0,0 @@
-> check

View File

@ -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 := ()

View File

@ -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")
}

View File

@ -1 +0,0 @@
-> check

View File

@ -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(