diff --git a/sbt-app/src/sbt-test/project/skip/build.sbt b/sbt-app/src/sbt-test/project/skip/build.sbt index 9f575bd75..1cc334e7d 100644 --- a/sbt-app/src/sbt-test/project/skip/build.sbt +++ b/sbt-app/src/sbt-test/project/skip/build.sbt @@ -1,5 +1,3 @@ -publish / skip := true - lazy val check = taskKey[Unit]("check") lazy val a = project @@ -17,12 +15,15 @@ lazy val c = project publish / skip := true ) -check := { - assert((publishLocal / skip).value, "Expected true, got false") - assert((a / publishLocal / skip).value, "Expected true, got false") - assert(!(a / publish / skip).value, "Expected false, got true") - assert(!(b / publish / skip).value, "Expected false, got true") - assert(!(b / publishLocal / skip).value, "Expected false, got true") - assert((c / publishLocal / skip).value, "Expected true, got false") - assert((c / publish / skip ).value, "Expected true, got false") -} +lazy val root = rootProject.settings( + publish / skip := true, + check := { + assert((publishLocal / skip).value, "Expected true, got false") + assert((a / publishLocal / skip).value, "Expected true, got false") + assert(!(a / publish / skip).value, "Expected false, got true") + assert(!(b / publish / skip).value, "Expected false, got true") + assert(!(b / publishLocal / skip).value, "Expected false, got true") + assert((c / publishLocal / skip).value, "Expected true, got false") + assert((c / publish / skip ).value, "Expected true, got false") + } +) diff --git a/sbt-app/src/sbt-test/project/skip/pending b/sbt-app/src/sbt-test/project/skip/test similarity index 100% rename from sbt-app/src/sbt-test/project/skip/pending rename to sbt-app/src/sbt-test/project/skip/test