mirror of https://github.com/sbt/sbt.git
test for artifact moduleName fix
This commit is contained in:
parent
93ac92fee7
commit
bb898e5b38
|
|
@ -0,0 +1,11 @@
|
|||
name := "Demo"
|
||||
|
||||
moduleName := "asdf"
|
||||
|
||||
crossPaths := false
|
||||
|
||||
TaskKey[Unit]("check-name") <<= (moduleName, name, packageBin in Compile) map { (module, n, f) =>
|
||||
val path = f.getAbsolutePath
|
||||
assert(path contains module, "Path " + path + " did not contain module name " + module)
|
||||
assert(!path.contains(n), "Path " + path + " contained " + n)
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
> check-name
|
||||
Loading…
Reference in New Issue