Skip to content

Instantly share code, notes, and snippets.

@soc
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save soc/105d182882c4e594e823 to your computer and use it in GitHub Desktop.

Select an option

Save soc/105d182882c4e594e823 to your computer and use it in GitHub Desktop.
Random other Build.scala which correctly creates two Eclipse projects
import sbt._
import Keys._
object BuildSettings {
val buildSettings = Defaults.defaultSettings ++ Seq(
organization := "de.oxnrtr.typeprovider",
version := "0.4-SNAPSHOT",
scalacOptions ++= Seq("-deprecation", "-feature"),
scalaVersion := "2.11.1",
resolvers += Resolver.sonatypeRepo("snapshots"),
libraryDependencies += "org.threeten" % "threetenbp" % "0.8.1",
libraryDependencies += "org.parboiled" %% "parboiled" % "2.0.0",
addCompilerPlugin("org.scalamacros" % "paradise_2.11.1" % "2.0.0")
)
}
object MyBuild extends Build {
import BuildSettings._
lazy val root: Project = Project(
"root",
file("."),
settings = buildSettings ++ Seq(
run <<= run in Compile in core
)
) aggregate(macros, core)
lazy val macros: Project = Project(
"typeprovider-macros",
file("macros"),
settings = buildSettings ++ Seq(
libraryDependencies <+= (scalaVersion)("org.scala-lang" % "scala-reflect" % _),
libraryDependencies <+= (scalaVersion)("org.scala-lang" % "scala-compiler" % _))
)
lazy val core: Project = Project(
"typeprovider-core",
file("core"),
settings = buildSettings
) dependsOn(macros)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment