@@ -13,41 +13,25 @@ and [Dave Gurnell][davegurnell].
1313Copyright 2015-2017 [ Underscore Consulting LLP] [ underscore ] .
1414Licensed [ Apache 2] [ license ] .
1515
16+ ## Versions
17+
18+ | Scala | Slick | Slickless |
19+ | -------| ----------| ----------|
20+ | 2.12 | 3.2 | [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/io.underscore/slickless_2.12/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/io.underscore/slickless_2.12 ) |
21+ | 2.11 | 3.1 | [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/io.underscore/slickless_2.11/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/io.underscore/slickless_2.11 ) |
22+
1623## Getting Started
1724
1825Grab the code by adding the following to your ` build.sbt ` :
1926
2027~~~
2128libraryDependencies ++= Seq(
22- "com.typesafe.slick" %% "slick" % "3.1.1 ",
29+ "com.typesafe.slick" %% "slick" % "3.2.0 ",
2330 "com.chuusai" %% "shapeless" % "2.3.1",
2431 "io.underscore" %% "slickless" % "<<VERSION>>"
2532)
2633~~~
2734
28- and for scala 2.12 for example
29-
30- ~~~
31- resolvers += "Maven Central" at "https://repo1.maven.org/maven2/"
32-
33- resolvers += Resolver.sonatypeRepo("releases")
34-
35- resolvers += Resolver.sonatypeRepo("snapshots")
36-
37- libraryDependencies ++= Seq(
38- "com.typesafe.slick" %% "slick" % "3.2.0",
39- "com.chuusai" %% "shapeless" % "2.3.2",
40- "io.underscore" %% "slickless" % "0.3.1"
41- )
42- ~~~
43-
44-
45- ## Versions
46-
47- | Scala | Slick | Slickless |
48- | -------| ----------| ----------|
49- | 2.12 | 3.2.0-M2 | [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/io.underscore/slickless_2.12/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/io.underscore/slickless_2.12 ) |
50- | 2.11 | 3.1 | [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/io.underscore/slickless_2.11/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/io.underscore/slickless_2.11 ) |
5135
5236## Synopsis
5337
@@ -93,14 +77,34 @@ lazy val users = TableQuery[Users]
9377
9478## Notes
9579
80+ ### Compile time
81+
9682Due to this [ issue] ( https://github.com/milessabin/shapeless/issues/619 ) ,
9783if you accidentally make a mapping which is incorrect,
9884the Scala compiler can take a huge amount of time to report an error.
9985If your slickless project is taking an insanely long amount of time to compile
10086(more than a couple of minutes),
10187try to make sure you have the mapping correct before using ` <> ` .
10288
103- ## Publishing
89+ ### Build example without default resolvers
90+
91+ If you need to add resolvers into your build, here's an example:
92+
93+ ~~~
94+ resolvers += "Maven Central" at "https://repo1.maven.org/maven2/"
95+
96+ resolvers += Resolver.sonatypeRepo("releases")
97+
98+ resolvers += Resolver.sonatypeRepo("snapshots")
99+
100+ libraryDependencies ++= Seq(
101+ "com.typesafe.slick" %% "slick" % "3.2.0",
102+ "com.chuusai" %% "shapeless" % "2.3.2",
103+ "io.underscore" %% "slickless" % "0.3.1"
104+ )
105+ ~~~
106+
107+ ### Publishing
104108
105109We use the [ sbt-pgp plugin] ( http://www.scala-sbt.org/sbt-pgp/usage.html ) and
106110the [ sbt-sonatype plugin] ( https://github.com/xerial/sbt-sonatype )
0 commit comments