Skip to content

Instantly share code, notes, and snippets.

@suls
Created October 23, 2015 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suls/177cf26d7a894da8dbf3 to your computer and use it in GitHub Desktop.
Save suls/177cf26d7a894da8dbf3 to your computer and use it in GitHub Desktop.
sbt
// project/ServiceApiBuild.scala
object ServiceApiBuild {
def idlProject(projectName : String) =
Project(
id = projectName,
base = file(projectName)
)
.settings(name := projectName)
.settings(
artifact in (Compile, packageBin) := {
val art: Artifact = (artifact in (Compile, packageBin)).value
art.copy(`classifier` = Some("idl"))
}
)
}
// build.sbt
lazy val `foobar-idl` =
idlProject("foobar-idl")
.settings(commonSettings: _*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment