Notices: This section not yet converted to new layout. Download stats are rolling back out.

This is not the latest version of Leiningen - Clojure Project Automation available.

Leiningen - Clojure Project Automation

Package test results are passing.

This package was approved by moderator ferventcoder on 9/14/2017.

Leiningen is for automating Clojure projects without setting your hair on fire.

It offers various project-related tasks and can:

  • create new projects
  • fetch dependencies for your project
  • run tests
  • run a fully-configured REPL
  • compile Java sources (if any)
  • run the project (if the project isn't a library)
  • generate a maven-style "pom" file for the project for interop
  • compile and package projects for deployment
  • publish libraries to repositories such as Clojars
  • run custom automation tasks written in Clojure (leiningen plug-ins)

If you come from the Java world, Leiningen could be thought of as "Maven meets Ant without the pain". For Ruby and Python folks, Leiningen combines RubyGems/Bundler/Rake and pip/Fabric in a single tool.

To install Leiningen - Clojure Project Automation, run the following command from the command line or from PowerShell:

C:\> choco install lein --version

To upgrade Leiningen - Clojure Project Automation, run the following command from the command line or from PowerShell:

C:\> choco upgrade lein --version


  • tools\chocolateyInstall.ps1 Show
    $package = 'Leiningen'
    $version = '2.7.1'
    $checksum = '32385e54b54ec99ac8a37792347ca4f1a3c7feb792066d7ffc8f1e4c5b7c7ad1'
    $url = "$version/bin/lein.bat"
    $batDir = Join-Path $Env:ChocolateyInstall 'bin'
    $lein = Join-Path $batDir 'lein.bat'
    Write-Host "Downloading from $url"
    # Download from an HTTPS location
    $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    Get-ChocolateyWebFile -PackageName "$package" -FileFullPath "$lein" -Url "$url" -CheckSumType "sha256" -Checksum "$checksum"
    Write-Host "Download from $url complete"
    Write-Host "Executing bootstrap script from $batDir"
    # $batDir is already in PATH
    lein self-install
    lein version
  • tools\chocolateyUninstall.ps1 Show
    $package = 'Leiningen'
    $version = '2.7.1'
    $installDir = Join-Path $Env:USERPROFILE '.lein'
    if (Test-Path $installDir)
      Remove-Item $installDir -Recurse -ErrorAction SilentlyContinue
    $batDir = Join-Path $Env:ChocolateyInstall 'bin'
    $lein = Join-Path $batDir 'lein.bat'
    if (Test-Path $lein)
      Remove-Item $lein -ErrorAction SilentlyContinue
    Write-Host "Uninstalling $package $version complete."

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.


    • jdk8 (≥ 8.0.144)

Package Maintainer(s)

Software Author(s)

  • Phil Hagelberg
  • Alex Osborne
  • Dan Larkin
  • and contributors


Release Notes

* Added SHA256 checksum because of download problems
* Bumped jdk dependency to jdk8 because of issues with the chocolatey jdk7 package
* updated Github source url

Version History

Version Downloads Last updated Status
Leiningen - Clojure Project Automation 2.9.0 312 Monday, February 11, 2019 approved
Leiningen - Clojure Project Automation 2.8.3 617 Sunday, December 16, 2018 approved
Leiningen - Clojure Project Automation 2.8.1 7518 Saturday, October 28, 2017 approved
Leiningen - Clojure Project Automation 456 Wednesday, September 13, 2017 approved
Leiningen - Clojure Project Automation 2.7.1 1304 Tuesday, December 13, 2016 approved
Leiningen - Clojure Project Automation 2.2.0 3373 Thursday, June 6, 2013 approved

Discussion for the Leiningen - Clojure Project Automation Package

Ground rules:

  • This discussion is only about Leiningen - Clojure Project Automation and the Leiningen - Clojure Project Automation package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Leiningen - Clojure Project Automation, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus uses cookies to enhance the user experience of the site.