-
Notifications
You must be signed in to change notification settings - Fork 187
Integrating phantom in your project
Flavian Alexandru edited this page May 30, 2016
·
20 revisions
The resolvers needed for Phantom are the Typesafe defaults, Sonatype, Twitter and our very own. The below list should make sure you have no dependency resolution errors.
resolvers ++= Seq(
"Typesafe repository snapshots" at "http://repo.typesafe.com/typesafe/snapshots/",
"Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/",
"Sonatype repo" at "https://oss.sonatype.org/content/groups/scala-tools/",
"Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases",
"Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Sonatype staging" at "http://oss.sonatype.org/content/repositories/staging",
"Java.net Maven2 Repository" at "http://download.java.net/maven/2/",
"Twitter Repository" at "http://maven.twttr.com",
"Websudos releases" at "https://dl.bintray.com/websudos/oss-releases/"
)
For most things, all you need is phantom-dsl
and phantom-testkit
. Read through for information on other modules.
libraryDependencies ++= Seq(
"com.websudos" %% "phantom-dsl" % phantomVersion,
"com.websudos" %% "phantom-testkit" % phantomVersion
)
The full list of available modules is:
libraryDependencies ++= Seq(
"com.websudos" %% "phantom-dsl" % phantomVersion,
"com.websudos" %% "phantom-example" % phantomVersion,
"com.websudos" %% "phantom-scalatra" % phantomVersion,
"com.websudos" %% "phantom-thrift" % phantomVersion,
"com.websudos" %% "phantom-testkit" % phantomVersion,
"com.websudos" %% "phantom-udt" % phantomVersion,
"com.websudos" %% "phantom-zookeeper" % phantomVersion
)
If you include phantom-zookeeper
, make sure to add the following resolvers:
resolvers += "twitter-repo" at "http://maven.twttr.com"
Spray users will probably be affected by a conflict in shapeless versions. To fix the conflict, add the following dependency to your build, which will allow you to use phantom and Spray together without any issues.
libraryDependencies ++= Seq(
"io.spray" %% "spray-routing-shapeless2" % SprayVersion
)
To stay up-to-date with our latest releases and news, follow us on Twitter: @outworkers.
- Issues and questions
- Adopters
- Roadmap
- Changelog
- Tutorials
- Commercial support
- Using phantom in your project
- Primitive columns
- Optional primitive columns
- Collection columns
- Collection operators
- Automated schema generation
- Indexing columns
- Data modeling with phantom
- Querying with phantom
- Asynchronous iterators
- Batch statements
- Apache Thrift integration
- Apache ZooKeeper integration
- The phantom testkit