Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
Created February 5, 2025 04:22
Show Gist options
  • Save xuwei-k/36d9fd38e9d4e8e5dd31bac3ec0e2a44 to your computer and use it in GitHub Desktop.
Save xuwei-k/36d9fd38e9d4e8e5dd31bac3ec0e2a44 to your computer and use it in GitHub Desktop.
TaskKey[Seq[String]]("allMainClassNames") := Def.taskDyn {
buildStructure.value.units
.apply(Keys.thisProjectRef.value.build)
.defined
.values
.toList
.map { p =>
LocalProject(p.id) / Compile / discoveredMainClasses
}
.join
.map(_.flatten.sorted)
}.value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment