Getting Started
Right now knockoff is easiest to use via sbt. The dependency declaration that resolves the scala version looks like this:
val knockoff = "com.tristanhunt" % "knockoff" %% "0.6.1-8"
If you have a problem with the scala version, you can specify it directly as part of the project name:
val knockoff = "com.tristanhunt" % "knockoff_2.7.7" % "0.6.1-8"
The repository specification is:
val t_repo = "t_repo" at "http://tristanhunt.com:8081/content/groups/public/"
A very simple example of the project definition file that goes in a place like
project/build/MyProject.scala:
import sbt._
class MyProject( info : ProjectInfo ) extends DefaultProject( info ) {
val knockoff = "com.tristanhunt" % "knockoff_2.7.7" % "0.6.1-8"
val nexus =
"tristanhunt nexus" at "http://tristanhunt.com:8081/content/groups/public"
}
Using Knockoff outside the Simple Build Tool
Definitely possible, it will require a downloaded scala version, after which you
include the lib/scala-library.jar file in your classpath along with the file at
http://tristanhunt.com:8081/content/groups/public/com/tristanhunt/
knockoff_[SCALA_VERSION]/
[KNOCKOFF_VERSION]/
knockoff_[SCALA_VERSION]-[KNOCKOFF_VERSION].jar
Yes, it's a long URL. So here's a link to one of the latest releases.
Building knockoff source
It uses sbt:
sbt update package
It also uses literable, which is what generates both the source code and
documentation. Add the lit sub command.
sbt update lit package