Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Cache Implementations #362

Merged
merged 3 commits into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ A facade for the most popular cache implementations, with a simple, idiomatic Sc
Use ScalaCache to add caching to any Scala app with the minimum of fuss.

The following cache implementations are supported, and it's easy to plugin your own implementation:
* Google Guava
* Memcached
* Ehcache
* Redis
* [Caffeine](https://github.com/ben-manes/caffeine)
* [cache2k](https://github.com/cache2k/cache2k)
* [OHC](https://github.com/snazy/ohc)

## Documentation

Expand Down
45 changes: 1 addition & 44 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ lazy val root: Project = Project(id = "scalacache", base = file("."))
.aggregate(
coreJS,
coreJVM,
guava,
memcached,
ehcache,
redis,
cache2k,
caffeine,
ohc,
catsEffect,
scalaz72,
circe,
Expand Down Expand Up @@ -74,31 +70,13 @@ def jvmOnlyModule(name: String) =
)
.dependsOn(coreJVM)

lazy val guava = jvmOnlyModule("guava")
.settings(
libraryDependencies ++= Seq(
"com.google.guava" % "guava" % "28.2-jre",
"com.google.code.findbugs" % "jsr305" % "3.0.2"
)
)

lazy val memcached = jvmOnlyModule("memcached")
.settings(
libraryDependencies ++= Seq(
"net.spy" % "spymemcached" % "2.12.3"
)
)

lazy val ehcache = jvmOnlyModule("ehcache")
.settings(
libraryDependencies ++= Seq(
"net.sf.ehcache" % "ehcache" % "2.10.6",
"javax.transaction" % "jta" % "1.1"
),
coverageMinimum := 80,
coverageFailOnMinimum := true
)

lazy val redis = jvmOnlyModule("redis")
.settings(
libraryDependencies ++= Seq(
Expand All @@ -108,14 +86,6 @@ lazy val redis = jvmOnlyModule("redis")
coverageFailOnMinimum := true
)

lazy val cache2k = jvmOnlyModule("cache2k")
.settings(
libraryDependencies ++= Seq(
"org.cache2k" % "cache2k-core" % "1.2.4.Final",
"org.cache2k" % "cache2k-api" % "1.2.4.Final"
)
)

lazy val caffeine = jvmOnlyModule("caffeine")
.settings(
libraryDependencies ++= Seq(
Expand All @@ -126,13 +96,6 @@ lazy val caffeine = jvmOnlyModule("caffeine")
coverageFailOnMinimum := true
)

lazy val ohc = jvmOnlyModule("ohc")
.settings(
libraryDependencies ++= Seq(
"org.caffinitas.ohc" % "ohc-core" % "0.7.0"
)
)

lazy val catsEffect = jvmOnlyModule("cats-effect")
.settings(
libraryDependencies ++= Seq(
Expand Down Expand Up @@ -173,7 +136,7 @@ lazy val circe = jvmOnlyModule("circe")

lazy val tests = jvmOnlyModule("tests")
.settings(publishArtifact := false)
.dependsOn(cache2k, caffeine, memcached, redis, ohc, catsEffect, scalaz72, circe)
.dependsOn(caffeine, memcached, redis, catsEffect, scalaz72, circe)

lazy val doc = jvmOnlyModule("doc")
.enablePlugins(MicrositesPlugin)
Expand All @@ -193,13 +156,9 @@ lazy val doc = jvmOnlyModule("doc")
)
.dependsOn(
coreJVM,
guava,
memcached,
ehcache,
redis,
cache2k,
caffeine,
ohc,
catsEffect,
scalaz72,
circe
Expand All @@ -222,9 +181,7 @@ lazy val benchmarks = jvmOnlyModule("benchmarks")
"-XX:-UseBiasedLocking"
)
)
.dependsOn(cache2k)
.dependsOn(caffeine)
.dependsOn(ohc)

lazy val scalatest = "org.scalatest" %% "scalatest" % "3.0.8" % Test

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading