Skip to content

Commit

Permalink
add example project
Browse files Browse the repository at this point in the history
  • Loading branch information
mossprescott committed Nov 16, 2016
1 parent 924dc96 commit 6964058
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,2 +1,2 @@
target
.tm_properties
.*
60 changes: 48 additions & 12 deletions build.sbt
Expand Up @@ -2,22 +2,58 @@ import sbt._
import Keys._
import de.heikoseeberger.sbtheader.license.Apache2_0

val commonSettings = Seq(
headers := Map(
"scala" -> Apache2_0("2015 - 2016", "Moss Prescott")),
scalaVersion := "2.12.0",
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xfuture",
"-Yno-adapted-args",
// "-Yno-imports",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Ydelambdafy:method",
"-Ypartial-unification",
//"-Yliteral-types",
"-Ywarn-unused-import"
)
)

lazy val root = (project in file("."))
.enablePlugins(AutomateHeaderPlugin)
.aggregate(core, examples)

lazy val core = project
.settings(commonSettings)
.settings(Seq(
headers := Map(
"scala" -> Apache2_0("2015 - 2016", "Moss Prescott")),
scalaVersion := "2.11.8",
name := "invertible-syntax",
initialCommands in console := "import invertible._, Syntax._",
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.2.2",
"com.chuusai" %% "shapeless" % "2.3.0",
"org.specs2" %% "specs2-core" % "3.7.3" % "test"
),
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-language:higherKinds"
"org.scalaz" %% "scalaz-core" % "7.2.7",
"com.chuusai" %% "shapeless" % "2.3.2",
"org.specs2" %% "specs2-core" % "3.8.6" % "test"
)
))
.enablePlugins(AutomateHeaderPlugin)

lazy val examples = project
.dependsOn(core)
.settings(commonSettings)
.settings(Seq(
name := "invertible-syntax-examples",
libraryDependencies ++= Seq(
// "org.scalaz" %% "scalaz-core" % "7.2.7",
// "com.chuusai" %% "shapeless" % "2.3.2",
// "com.slamdata" % "matryoshka-core_2.11" % "0.11.1",
"org.specs2" %% "specs2-core" % "3.8.6" % "test"
)
))
.enablePlugins(AutomateHeaderPlugin)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion project/build.properties
@@ -1 +1 @@
sbt.version=0.13.8
sbt.version=0.13.13
2 changes: 1 addition & 1 deletion project/plugins.sbt
@@ -1 +1 @@
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "1.5.0")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "1.5.0")

0 comments on commit 6964058

Please sign in to comment.