Home Code Other Software

Table of Contents

Introduction

The Grizzled Scala Library is a general-purpose Scala library with a variety of different modules and packages. It’s similar to the clapper.org Grizzled Python Library, only for Scala. (Duh.) It’s roughly organized into subpackages that group different kinds of utility functions and classes. Currently, the library is broken into the following modules:

Currently, the library is broken into a number of modules:

For a more detailed description of what’s available, see the API documentation.

Installation

Grizzled Scala is published to the oss.sonatype.org repository and automatically sync’d with the Maven Central Repository.

Installing for Maven

If you’re using Maven, just specify the artifact, and Maven will do the rest for you:

For example:

<dependency>
  <groupId>org.clapper</groupId>
  <artifactId>grizzled-scala_2.10</artifactId>
  <version>1.1.4</version>
</dependency>

For more information on using Maven and Scala, see Josh Suereth’s Scala Maven Guide.

Using with SBT

0.7.x

If you’re using SBT 0.7.x to compile your code, you can place the following line in your project file (i.e., the Scala file in your project/build/ directory):

val grizzled = "org.clapper" %% "grizzled-scala" % "1.0.14"

0.11.x and 0.12.x

If you’re using SBT 0.11.x to compile your code, you can use the following line in your build.sbt file (for Quick Configuration). If you’re using an SBT 0.11.x Full Configuration, you’re obviously smart enough to figure out what to do, on your own.

If you’re using Scala 2.9.2 or earlier:

libraryDependencies += "org.clapper" %% "grizzled-scala" % "1.0.14"

If you’re using Scala 2.10:

libraryDependencies += "org.clapper" % "grizzled-scala_2.10" % "1.1.4"

Grizzled Scala is also registered with Doug Tangren’s excellent ls.implicit.ly catalog. If you use the ls SBT plugin, you can install Grizzled Scala with

sbt> ls-install grizzled-scala

Source Code Repository

The source code for the Grizzled Scala Library is maintained on GitHub. To clone the repository, run this command:

git clone git://github.com/bmc/grizzled-scala.git

Building from Source

Building the Grizzled Scala Library requires SBT 0.11.1 or better. Install SBT, as described at the SBT web site. Then, assuming you have an sbt shell script (or .BAT file, for Windows), run:

sbt compile test package

The resulting jar file will be under the top-level target directory.

API Documentation

The Scaladoc-generated the API documentation is available locally. In addition, you can generate your own version with:

sbt doc

Change log

The change log for all releases is here.

Author

Brian M. Clapper, bmc@clapper.org

The Grizzled Scala Library is copyright © 2009-2012 Brian M. Clapper and is released under a BSD License.

Patches

I gladly accept patches from their original authors. Feel free to email patches to me or to fork the GitHub repository and send me a pull request. Along with any patch you send: