Converting Leiningen project.clj to Gradle

190 views
Skip to first unread message

Adam Markham

unread,
Sep 17, 2014, 4:21:35 PM9/17/14
to clo...@googlegroups.com
Unfortunately using Leiningen in this project is out of the question, as the CI environment i'm using doesn't support it. Therefore I would like to convert this project.clj to a gradle project so I can run the uberjar that is built as a standalone jar. This seems to work well with this in Leiningen:

(defproject sqs-cleanup "0.1.0-SNAPSHOT"
  :description "SQS cleanup"
  :license {:name "Eclipse Public License"
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [amazonica "0.2.24"]]
  :main sqs-cleanup.core
  :uberjar-name "sqs-cleanup.jar")

This is proving to be more difficult than I thought, as the Gradle build script doesn't seem to put the main class in the mainfest. I'm following this guide: https://github.com/DevonStrawn/Clojuresque-Boilerplate/blob/master/UberJar/build.gradle

Any pointers would be great. 

Thanks,
Adam

Korny Sietsma

unread,
Sep 17, 2014, 4:57:27 PM9/17/14
to clo...@googlegroups.com

Which ci environment? I'm a little surprised, as those I've used will let you run arbitrary command lines. I've run leiningen from Jenkins, Bamboo, and ThoughtWorks Go, all with no problems...

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages