Last active
August 29, 2015 14:03
-
-
Save soc/105d182882c4e594e823 to your computer and use it in GitHub Desktop.
Random other Build.scala which correctly creates two Eclipse projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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