diff --git a/project.clj b/project.clj index f777a2e..e9ab269 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject mw-engine "0.1.2-SNAPSHOT" +(defproject mw-engine "0.1.2" :description "Cellular automaton world builder." :url "http://www.journeyman.cc/microworld/" :manifest { diff --git a/src/mw_engine/core.clj b/src/mw_engine/core.clj index ae3a065..771f355 100644 --- a/src/mw_engine/core.clj +++ b/src/mw_engine/core.clj @@ -2,7 +2,8 @@ (ns mw-engine.core (:use mw-engine.utils) - (:require [mw-engine.world :as world])) + (:require [mw-engine.world :as world]) + (:gen-class)) ;; Every rule is a function of two arguments, a cell and a world. If the rule ;; fires, it returns a new cell, which should have the same values for :x and diff --git a/src/mw_engine/heightmap.clj b/src/mw_engine/heightmap.clj index b31008e..da13bd4 100644 --- a/src/mw_engine/heightmap.clj +++ b/src/mw_engine/heightmap.clj @@ -7,7 +7,7 @@ (:import [java.awt.image BufferedImage]) (:use mw-engine.utils mw-engine.world) - (:require [fivetonine.collage.util :as collage] + (:require [fivetonine.collage.util :as collage :only [load-image]] [mikera.image.core :as imagez :only [filter-image get-pixels]] [mikera.image.filters :as filters])) diff --git a/src/mw_engine/version.clj b/src/mw_engine/version.clj index 18b9b0e..d3fa41d 100644 --- a/src/mw_engine/version.clj +++ b/src/mw_engine/version.clj @@ -3,9 +3,14 @@ (defn get-implementation-version "Get the implementation version from the package of this namespace, which must - be compiled into a class (see clojure.java.interop)" - [namespace-class] - (.getImplementationVersion (.getPackage namespace-class))) + be compiled into a class (see clojure.java.interop). See + http://stackoverflow.com/questions/12599889/how-to-get-runtime-access-to-version-number-of-a-running-clojure-application + TODO: doesn't work yet." + [] + (try + (.getImplementationVersion (.getPackage (eval 'mw-engine.version))) + (catch Exception any "Unknown") + )) (defn -main [] - (get-implementation-version (eval 'mw-engine.version))) + (get-implementation-version ))