Add scripted test to verify ThisProject is resolved properly

This commit is contained in:
Dan Sanduleac 2014-05-20 18:19:36 +01:00 committed by Dan Sanduleac
parent 5deb103ef6
commit 5273aa3a03
3 changed files with 12 additions and 0 deletions

View File

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

View File

@ -0,0 +1 @@
name in ThisProject := "boo"

View File

@ -0,0 +1 @@
> check