Skip to content

Commit 7820e75

Browse files
committed
Merge pull request scalamacros#5 from aholland/simple-sbt-file
Removed project/Build.scala and replaced it with a simple-as-possible…
2 parents e6f11ec + 3a51df5 commit 7820e75

File tree

5 files changed

+15
-56
lines changed

5 files changed

+15
-56
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
### An example SBT project which uses macros (Scala 2.10/2.11, SBT 0.13)
2-
3-
*In order to enable quasiquotes in Scala 2.10.x, use the macro paradise compiler plugin as outlined in [https://github.com/scalamacros/sbt-example-paradise](https://github.com/scalamacros/sbt-example-paradise)*.
1+
### An example SBT project which uses macros (Scala 2.11, SBT 0.13)
42

53
To verify that everything works fine, do `sbt run`.
64

build.sbt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name := "sbt-example"
2+
organization := "org.scalamacros"
3+
version := "2.0.0"
4+
5+
scalaVersion in ThisBuild := "2.11.8"
6+
run <<= run in Compile in core
7+
8+
lazy val macros = (project in file("macros")).settings(
9+
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
10+
)
11+
12+
lazy val core = (project in file("core")) dependsOn macros

macros/src/main/scala/Macros.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import scala.language.experimental.macros
2-
import scala.reflect.macros.Context
2+
import scala.reflect.macros.blackbox.Context
33

44
object Macros {
55
def impl(c: Context) = {

project/Build.scala

Lines changed: 0 additions & 51 deletions
This file was deleted.

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.7
1+
sbt.version=0.13.11

0 commit comments

Comments
 (0)