mirror of https://github.com/sbt/sbt.git
Add scripted test to verify ThisProject is resolved properly
This commit is contained in:
parent
5deb103ef6
commit
5273aa3a03
|
|
@ -0,0 +1,10 @@
|
|||
val proj2 = project
|
||||
|
||||
name := "proj1"
|
||||
|
||||
val check = taskKey[Unit]("Ensure each project is named appropriately")
|
||||
|
||||
check := {
|
||||
require(name.value == "proj1")
|
||||
require((name in proj2).value == "boo")
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
name in ThisProject := "boo"
|
||||
|
|
@ -0,0 +1 @@
|
|||
> check
|
||||
Loading…
Reference in New Issue