Skip to content

Instantly share code, notes, and snippets.

@danslapman
Created December 28, 2017 14:40
Show Gist options
  • Save danslapman/2a8b15cde8ad04f856c5b42af1526edd to your computer and use it in GitHub Desktop.
Save danslapman/2a8b15cde8ad04f856c5b42af1526edd to your computer and use it in GitHub Desktop.
sbt config scope
name := "sbt-scopes"
version := "0.1"
scalaVersion := "2.12.4"
lazy val Probe = config("probe").intransitive
.extend(Compile)
.describedAs("Probe configuration")
lazy val `sbt-scopes` =
(project in file(""))
.configs(Probe)
.settings(
inConfig(Probe)(Defaults.compileSettings),
scalaSource in Probe := baseDirectory.value / "src" / "probe" / "scala"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment