Permalink
Browse files

Added Leiningen build support. Moved tests and examples to the layout…

… Leiningen expects.
  • Loading branch information...
1 parent d0db186 commit 28b596563f9e061fc7e1c9e15b2ca171767fb7c8 @gcv committed Jan 17, 2010
View
@@ -45,9 +45,9 @@ by assigning a new value to :a and adding a new stored node, :d. Note that
graph1 remains unmodified. graph1 and graph2 share as much structure as
possible, just like Clojure's built-in persistent data structures.
-This example is available in `src/examples/dgraph/simple.clj`.
-`src/examples/dgraph/swing.clj` shows how dependency graphs can be handy in GUI
-programming, applied to Swing.
+This example is available in `examples/examples/dgraph/simple.clj`.
+`examples/examples/dgraph/swing.clj` shows how dependency graphs can be handy in
+GUI programming, applied to Swing.
@@ -59,11 +59,24 @@ computed nodes which execute code on more than one thread (see the Documentation
and Limitations sections below). Clojure 1.1 is also required for the dgraph
test suite.
+
+### Option 1: Ant
+
1. Clone the dgraph Git repository.
-2. Run `ant package`. Please note that dgraph is not AOT compiled. (It is a tiny
- library.)
-3. Copy the dgraph jar to wherever you normally keep Clojure dependencies. Make
- sure to add the jar to your project's classpath.
+2. Run `ant package`.
+3. Copy the resulting dgraph jar to wherever you normally keep Clojure
+ dependencies. Make sure to add the jar to your project's classpath.
+
+
+### Option 2: Leiningen
+
+Add a dependency on `[dgraph "1.0.0"]` to your `project.clj` file. Leiningen
+will pull the dgraph dependency from Clojars.
+
+
+### Option 3: Maven
+
+dgraph is available on Clojars.
View
@@ -14,7 +14,7 @@
<target name="package">
<jar jarfile="dgraph-${version}.jar">
<path location="LICENSE"/>
- <fileset dir="src" includes="**" excludes="test/**"/>
+ <fileset dir="src" includes="**"/>
</jar>
</target>
File renamed without changes.
View
@@ -0,0 +1,3 @@
+(defproject dgraph "1.0.0"
+ :description "A dependency graph library for Clojure."
+ :dependencies [[org.clojure/clojure "1.1.0"]])
File renamed without changes.
View
@@ -1 +1 @@
-version=1.0
+version=1.0.0

0 comments on commit 28b5965

Please sign in to comment.