Skip to content

Commit fdc6ae6

Browse files
authored
Update build and README (#17)
* Update build and README * Update build.properties
1 parent 4320266 commit fdc6ae6

File tree

4 files changed

+34
-21
lines changed

4 files changed

+34
-21
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
# query-monad-example
1+
# Query Monad
22

3-
Project for the article **Functional database programming with Play Anorm through the `Reader Monad`**
3+
A Query Monad implementation for Anorm.
44

5-
# CONTRIBUTING
5+
(Initiated for the article **Functional database programming with Play Anorm through the `Reader Monad`**)
6+
7+
## Build
8+
9+
The project is using [SBT](http://www.scala-sbt.org/), so to build it from sources the following command can be used.
10+
11+
sbt publishLocal
12+
13+
[![CircleCI](https://travis-ci.org/zengularity/query-monad.svg?style=svg)](https://travis-ci.org/zengularity/query-monad)
14+
[![Zen Entrepot](http://zen-entrepot.nestincloud.io/entrepot/shields/releases/com/zengularity/query-monad_2.12.svg)](https://zen-entrepot.nestincloud.io/entrepot/pom/releases/com/zengularity/query-monad_2.12)
15+
16+
## Contributing
617

718
Please take a look at the [Contribution guide](.github/CONTRIBUTING.md)

build.sbt

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import Dependencies._
22

3-
name := """query-monad-code"""
3+
name := "query-monad-code"
44

55
version := "1.0-SNAPSHOT"
66

7-
scalaVersion := "2.12.4"
7+
scalaVersion in ThisBuild := "2.12.6"
88

99
// Common values
1010
val commonSettings = Seq(
1111
organization := "com.zengularity",
12-
scalaVersion := "2.12.4",
1312
crossPaths := false,
1413
scalacOptions ++= Seq(
1514
"-deprecation", // Emit warning and location for usages of deprecated APIs.
@@ -51,6 +50,7 @@ val commonSettings = Seq(
5150
)
5251
)
5352

53+
// Scalafmt
5454
scalafmtOnCompile in ThisBuild := true
5555
scalafmtOnCompile := true
5656
scalafmtTestOnCompile in ThisBuild := true
@@ -62,26 +62,28 @@ wartremoverErrors ++= Warts.unsafe
6262
// Projects definitions
6363

6464
lazy val core = (project in file("core"))
65-
.settings(commonSettings)
6665
.settings(
67-
name := "query-core",
68-
libraryDependencies ++= Seq(
69-
Dependencies.acolyte % Test,
70-
Dependencies.anorm % Test,
71-
Dependencies.cats,
72-
Dependencies.specs2 % Test
66+
commonSettings ++ Seq(
67+
name := "query-core",
68+
libraryDependencies ++= Seq(
69+
Dependencies.acolyte % Test,
70+
Dependencies.anorm % Test,
71+
Dependencies.cats,
72+
Dependencies.specs2 % Test
73+
)
7374
)
7475
)
7576

7677
lazy val sampleAppExample = (project in file("examples/sample-app"))
7778
.enablePlugins(PlayScala)
78-
.settings(commonSettings)
7979
.settings(
80-
name := "sample-app-example",
81-
libraryDependencies ++= Seq(
82-
jdbc,
83-
Dependencies.anorm,
84-
Dependencies.h2
80+
commonSettings ++ Seq(
81+
name := "sample-app-example",
82+
libraryDependencies ++= Seq(
83+
jdbc,
84+
Dependencies.anorm,
85+
Dependencies.h2
86+
)
8587
)
8688
)
8789
.dependsOn(core)

project/build.properties

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

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.10")
77

88
// addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC13")
99

10-
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.2.1")
10+
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.2.1")

0 commit comments

Comments
 (0)