From 099c73ec0d931a344ff37b3c6acd8d0954b9da04 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Wed, 29 Jun 2011 21:44:37 -0400 Subject: [PATCH] temporary fix for source jar getting put in compile configuration --- project/Util.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/Util.scala b/project/Util.scala index c26368b79..7ff11d6ac 100644 --- a/project/Util.scala +++ b/project/Util.scala @@ -12,8 +12,10 @@ object Util def noPublish(p: Project) = p.copy(settings = noRemotePublish(p.settings)) def noRemotePublish(in: Seq[Setting[_]]) = in filterNot { s => s.key == deliver || s.key == publish } lazy val noExtra = projectDependencies ~= { _.map(_.copy(extraAttributes = Map.empty)) } // not sure why this is needed + // not needed after moving to 0.10.1 + lazy val fixArtifact = artifact in (Compile, packageSrc) ~= (_.copy(configurations = Optional :: Nil)) - def project(path: File, nameString: String) = Project(normalize(nameString), path) settings( name := nameString, noExtra ) + def project(path: File, nameString: String) = Project(normalize(nameString), path) settings( name := nameString, noExtra, fixArtifact ) def baseProject(path: File, nameString: String) = project(path, nameString) settings( base : _*) def testedBaseProject(path: File, nameString: String) = baseProject(path, nameString) settings( testDependencies : _*)