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
| object build extends Build { | |
| val maestroJar = TaskKey[File]("maestro-jar", "Creates a packaged jar that works for maestro") | |
| def allFiles(base: File): Seq[File] = { | |
| val finder: PathFinder = PathFinder(base).*** | |
| finder.get | |
| } | |
| val maestroJarSettings: Seq[Project.Setting[_]] = inTask(maestroJar)(Seq( | |
| artifactPath <<= artifactPathSetting(artifact), |
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
| object helloMacro { | |
| def impl(c: Context)(annottees: c.Expr[Any]*): c.Expr[Any] = { | |
| import c.universe._ | |
| import Flag._ | |
| val result = { | |
| annottees.map(_.tree).toList match { | |
| case q"trait $name extends ..$parents { ..$body }" :: Nil => | |
| q""" | |
| trait $name extends ..$parents { | |
| def hello = "hello" |
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 com.typesafe.sbt.packager.Keys._ | |
| import sbt.Keys._ | |
| import com.typesafe.sbt.SbtNativePackager._ | |
| name := "hw" | |
| version := "1.0" | |
| scalaVersion := "2.10.3" |
OlderNewer