Skip to content

Instantly share code, notes, and snippets.

@Petesta
Last active September 5, 2015 01:06
Show Gist options
  • Save Petesta/f8cbf947388c79fd1287 to your computer and use it in GitHub Desktop.
Save Petesta/f8cbf947388c79fd1287 to your computer and use it in GitHub Desktop.
import sbt._
import Keys._
object BuildSettings {
val buildSettings = Seq(
scalaVersion := "2.11.4",
scalacOptions += "",
resolvers += Resolver.sonatypeRepo("snapshots"),
resolvers += Resolver.sonatypeRepo("releases")
)
}
object ScalaMacroDebugBuild extends Build {
import BuildSettings._
lazy val root = (project in file(".")
aggregate(macros, examples)
settings(buildSettings: _*)
settings(moduleName := "root")
)
lazy val macros = (project in file("macros")
settings(buildSettings: _*)
settings(
moduleName := "macros",
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-compiler" % "2.11.4",
"org.scala-lang" % "scala-reflect" % "2.11.4",
"com.chuusai" %% "shapeless" % "2.2.4"
)
)
)
lazy val examples = (project in file("examples")
dependsOn(macros)
settings(buildSettings: _*)
settings(moduleName := "examples")
)
}
@Petesta
Copy link
Author

Petesta commented Sep 5, 2015

Petesta :: λ -> ~/Desktop/macros ls *
examples:
Main.scala target

macros:
Macro.scala target

project:
Build.scala plugins.sbt project     target

root:
Main.scala target

target:
resolution-cache scala-2.10       scala-2.11       streams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment