Repository: incubator-toree Updated Branches: refs/heads/master e5ef3a104 -> 5743f068d
Copy ivy file to resources Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/464c367d Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/464c367d Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/464c367d Branch: refs/heads/master Commit: 464c367d5f2138a6faacbbf2c96666e91adaad0b Parents: 4ad1afd Author: Jakob Odersky <ja...@odersky.com> Authored: Tue Feb 14 17:19:05 2017 -0800 Committer: Jakob Odersky <ja...@odersky.com> Committed: Wed Feb 15 15:24:09 2017 -0800 ---------------------------------------------------------------------- project/CommonPlugin.scala | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/464c367d/project/CommonPlugin.scala ---------------------------------------------------------------------- diff --git a/project/CommonPlugin.scala b/project/CommonPlugin.scala index 58358d5..093fad9 100644 --- a/project/CommonPlugin.scala +++ b/project/CommonPlugin.scala @@ -43,7 +43,14 @@ object CommonPlugin extends AutoPlugin { ), unmanagedResourceDirectories in Test ++= Seq( (baseDirectory in ThisBuild).value / "resources" / "test" - ) + ), + resourceGenerators in Compile += Def.task { + val inputFile = (deliverLocal in Compile).value + val outputFile = (resourceManaged in Compile).value / s"${name.value}-ivy.xml" + streams.value.log.info(s"Copying ${inputFile.getPath} to ${outputFile.getPath}") + IO.copyFile(inputFile, outputFile) + Seq(outputFile) + }.taskValue ) }