Add scripted auto-plugins-ivy-disabled

This commit is contained in:
Adrien Piquerez 2021-02-20 11:53:09 +01:00
parent be1e756104
commit 80de6a5f6b
3 changed files with 8 additions and 5 deletions

View File

@ -0,0 +1,6 @@
disablePlugins(plugins.IvyPlugin)
TaskKey[Unit]("check") := {
val pid = projectID.?.value
assert(pid.isEmpty)
}

View File

@ -0,0 +1 @@
> check

View File

@ -28,9 +28,6 @@ lazy val projI = project.enablePlugins(TopC)
// Tests that we can disable an auto-enabled root plugin
lazy val disableAutoNoRequirePlugin = project.disablePlugins(OrgPlugin)
disablePlugins(plugins.IvyPlugin)
check := {
// Ensure organization on root is overridable.
val rorg = (organization).value // Should be None
@ -38,8 +35,7 @@ check := {
// this will pass when the raw disablePlugin works.
val dversion = (projectID in projD).?.value // Should be None
same(dversion, None, "projectID in projD")
val rversion = projectID.?.value // Should be None
same(rversion, None, "projectID")
// Ensure with multiple .sbt files that disabling/enabling works across them
val fDel = (del in Quux in projF).?.value
same(fDel, Some(" Q"), "del in Quux in projF")