Created
June 28, 2011 18:11
-
-
Save cch1/1051772 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;(require 'copterj.git-version) ;; Pick up DRY'd version numbers | |
(require 'clojure.contrib.io) ;; Needed to locate newrelic | |
(let [java-agent (str "-javaagent:" (clojure.contrib.io/pwd) "/lib/newrelic.jar")] | |
(defproject apij ~(copterj.git-version/git-describe) | |
:description "Hotelicopter's API" | |
:dependencies | |
[[com.hotelicopter/copterj "1.0.0-SNAPSHOT"] | |
[org.clojure/clojure "1.2.0"] | |
[org.clojure/clojure-contrib "1.2.0"] | |
[clojure-useful "0.2.2"] | |
[org.clojars.mcav/pegdown "0.8.5.1"] | |
[compojure "0.5.3"] | |
[ring/ring-core "0.3.8"] | |
[ring/ring-devel "0.3.8"] | |
[enlive "1.0.0-SNAPSHOT"] | |
[diamondap/clj-apache-https "1.0.10"] | |
[inflections "0.4-SNAPSHOT"] | |
[org.clojars.mikejs/ring-gzip-middleware "0.1.0-SNAPSHOT"] | |
[org.clojars.cvillecsteele/ring-permacookie-middleware "1.3.0-SNAPSHOT"] | |
[clj-stacktrace "0.2.0"] | |
[org.apache.httpcomponents/httpcore "4.1.1"] | |
[com.amazonaws/aws-java-sdk "1.2.0"] | |
[net.java.dev.jets3t/jets3t "0.8.0"] | |
[joda-time "1.6"] | |
[org.clojars.ohpauleez/fnparse "3.0.0alpha4"] | |
[org.apache.solr/solr-core "3.2.0"] | |
[org.apache.solr/solr-solrj "3.2.0"]] | |
:dev-dependencies [[swank-clojure "1.3.0-SNAPSHOT"] | |
[midje "1.0.1"] | |
[lein-run "1.0.0-SNAPSHOT"] | |
[lein-ring "0.4.1"] | |
[cdt "1.2"] | |
[fs "0.6.2"] | |
com.hotelicopter/git-project "1.0.0"] | |
:jvm-opts [;; Optimizations | |
"-server" | |
"-Xms512M" "-Xmx1g" | |
"-XX:NewRatio=5" "-XX:+UseConcMarkSweepGC" "-XX:+UseParNewGC" | |
;; Uncomment the next line to enable new relic in dev/test | |
;; ~java-agent | |
;; These are interesting but don't seem to help much | |
;; "-XX:+UseBiasedLocking" "-XX:+UseCompressedOops" | |
;; For JSwat or CDT debugging: | |
;; "-Xdebug" | |
;; "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8021" | |
;; Otherwise we get MacRoman on OSX? (Not sure...) | |
"-Dfile.encoding=UTF-8"] | |
;; we should be able to use this as soon as solr 4.0 comes out: | |
;; http://repo1.maven.org/maven2/org/apache/ | |
:repositories { | |
"hotelicopter_snapshots" "https://raw.github.com/g1nn13/maven/master/snapshots" | |
"hotelicopter_releases" "https://raw.github.com/g1nn13/maven/master/releases" | |
"builds.apache.org" | |
"https://builds.apache.org/hudson/job/Lucene-Solr-Maven-trunk/lastSuccessfulBuild/artifact/maven_artifacts" | |
"stuartsierra.com" "http://stuartsierra.com/maven2" | |
;; zoopkeeper and commons-httpclient... | |
"www.ibiblio.org" "http://www.ibiblio.org/maven"} | |
:hooks [leiningen.git-version | |
leiningen.uberwar-cleanup | |
leiningen.proxy | |
leiningen.new-relic] | |
;; Toggle new relic | |
:new-relic false | |
:ring {:handler apij.core/app | |
:init apij.core/init!})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment