Skip to content

Instantly share code, notes, and snippets.

@canassa
Created February 8, 2012 17:56
Show Gist options
  • Save canassa/1771645 to your computer and use it in GitHub Desktop.
Save canassa/1771645 to your computer and use it in GitHub Desktop.
Utilizando Leiningen

Comandos

lein new NAME  # Cria um novo projeto
lein deps      # Baixa as dependências
lein repl      # Iniciar o REPL
lein compile   # Gera o war

Exemplo de project.clj para o Google App Engine

(defproject leintest "1.0.0-SNAPSHOT"
  :description "App engine clojure"
  :dependencies [[org.clojure/clojure "1.3.0"]
                 [ring "1.0.0-RC1"]
                 [compojure "0.6.4"]
                 [com.google.appengine/appengine-tools-sdk "1.6.2"]]
  :aot [leintest.core]
  :compile-path "war/WEB-INF/classes/"
  :library-path "war/WEB-INF/lib/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment