wellcometrust / scala-storage

Scala storage libraries in use at Wellcome Collection

GitHub

scala-storage

Storage libraries in use at Wellcome comprising:

  • VersionedDao: A DynamoDB wrapper allowing strongly typed and strongly consistent updates.
  • ObjectStore: A storage agnostic strongly typed large object store library (an S3StorageBackend is provided).
  • VersionedHybridStore: A strongly typed and strongly consistent large object store with indexes provided by DynamoDB.

Build Status

Installation

libraryDependencies ++= Seq(
  "uk.ac.wellcome" %% "storage" % "<LATEST_VERSION>"
)

storage is published for Scala 2.11 and Scala 2.12.

Read the changelog to find the latest version.

Development

If you want to release this library you'll need credentials to authenticate with Travis and Sonatype.

Releasing to Sonatype

Create a file credentials.sbt in the root of the repo with the following contents (but with the correct details).

credentials += Credentials("Sonatype Nexus Repository Manager",
       "oss.sonatype.org",
       "(Sonatype user name)",
       "(Sonatype password)")

pgpPassphrase := Some("(PGP password)".toCharArray)

Then run publishSigned and sonatypeRelease in sbt to push a release:

sbt ++2.11.11 publishSigned sonatypeRelease;