temporary fix for source jar getting put in compile configuration

This commit is contained in:
Mark Harrah 2011-06-29 21:44:37 -04:00
parent 51d279b3a3
commit 099c73ec0d
1 changed files with 3 additions and 1 deletions

View File

@ -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 : _*)