Skip to content

Instantly share code, notes, and snippets.

@harrah
Created September 28, 2010 23:50
Show Gist options
  • Save harrah/602033 to your computer and use it in GitHub Desktop.
Save harrah/602033 to your computer and use it in GitHub Desktop.
import sbt._
import xsbti.api._
class Single(info: ProjectInfo) extends DefaultProject(info)
{
lazy val allDefs = compile map { _.apis.internal.flatMap(_._2.definitions) }
lazy val modules = allDefs map {
_.collect { case c: ClassLike if c.definitionType == DefinitionType.Module => c.name }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment