mirror of https://github.com/sbt/sbt.git
Reproduce #7288 in scripted project/skip
This commit is contained in:
parent
ca09ee96fd
commit
1b31a377d2
|
|
@ -11,10 +11,18 @@ lazy val a = project
|
|||
lazy val b = project
|
||||
.in(file("b"))
|
||||
|
||||
lazy val c = project
|
||||
.in(file("c"))
|
||||
.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")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
> check
|
||||
|
||||
# should not fail if skipped, and publishTo is empty
|
||||
> c / publish
|
||||
|
|
|
|||
Loading…
Reference in New Issue