How to upgrade Heroku Leiningen?

When deploying a clojure application in Heroku, I see that it uses cached Leiningen 1.6.2

$ git push heroku master Counting objects: 271, done. Delta compression using up to 2 threads. Compressing objects: 100% (205/205), done. Writing objects: 100% (251/251), 737.28 KiB | 583 KiB/s, done. Total 251 (delta 48), reused 234 (delta 41) -----> Heroku receiving push -----> Clojure app detected -----> Using cached Leiningen 1.6.2 Downloading: rlwrap-0.3.7 Writing: lein script -----> Installing dependencies and compiling with Leiningen ... 

I would like to upgrade to 1.7.0 so that I can use the :plugins function in project.clj .

How can I get Heroku to upgrade Leiningen on the cedar stack?

Thanks!

+4
source share
2 answers

So ... I'm working on it. =) I have not yet announced 1.7.0, because I have a bug report that I could not reproduce, but as soon as I have the opportunity to investigate and fix, if applicable, I will have it in the official assembly. At the same time, you can use the custom BUILDPACK_URL to point to the lein-1.7 branch:

 $ heroku config:add BUILDPACK_URL=http://github.com/heroku/heroku-buildpack-clojure.git#lein-1.7 
+3
source

You may be able to change the version with a custom buildpack .
Then you can specify the version in bin / compile:

 # install leiningen jar LEIN_VERSION="1.6.2" LEIN_JAR_URL="https://heroku-buildpack-clojure.s3.amazonaws.com/leiningen-$LEIN_VERSION-standalone.jar" LEIN_JAR_PATH="$CACHE_DIR/leiningen-$LEIN_VERSION-standalone.jar" 

I am not sure that 100% this will work. I suggest you wait until Heroku updates Leiningen :)

+1
source

Source: https://habr.com/ru/post/1395289/


All Articles