feat: Leiningen 2.2.0
- Automating Clojure projects without setting your hair on fire
This commit is contained in:
40
Leiningen/Leiningen.nuspec
Normal file
40
Leiningen/Leiningen.nuspec
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<metadata>
|
||||||
|
<id>Lein</id>
|
||||||
|
<title>Leiningen - Clojure Project Automation</title>
|
||||||
|
<version>2.2.0</version>
|
||||||
|
<authors>Phil Hagelberg, Alex Osborne, Dan Larkin, and contributors</authors>
|
||||||
|
<owners>Ethan J Brown</owners>
|
||||||
|
<summary>Leiningen is for automating Clojure projects without setting your hair on fire.</summary>
|
||||||
|
<description>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.</description>
|
||||||
|
<projectUrl>https://github.com/technomancy/leiningen</projectUrl>
|
||||||
|
<tags>java clojure lein leiningen REPL clojars package manager</tags>
|
||||||
|
<licenseUrl>https://github.com/technomancy/leiningen#license</licenseUrl>
|
||||||
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
|
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/Leiningen/clojure_logo.png</iconUrl>
|
||||||
|
<releaseNotes></releaseNotes>
|
||||||
|
<dependencies>
|
||||||
|
<dependency id="jdk7" />
|
||||||
|
<dependency id="curl" />
|
||||||
|
</dependencies>
|
||||||
|
</metadata>
|
||||||
|
<files>
|
||||||
|
<file src="tools\**" target="tools" />
|
||||||
|
</files>
|
||||||
|
</package>
|
BIN
Leiningen/clojure_logo.png
Normal file
BIN
Leiningen/clojure_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
BIN
Leiningen/leiningen_logo.png
Normal file
BIN
Leiningen/leiningen_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
28
Leiningen/tools/chocolateyInstall.ps1
Normal file
28
Leiningen/tools/chocolateyInstall.ps1
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
$package = 'Leiningen'
|
||||||
|
$version = '2.2.0'
|
||||||
|
|
||||||
|
try {
|
||||||
|
$url = "https://raw.github.com/technomancy/leiningen/$version/bin/lein.bat"
|
||||||
|
|
||||||
|
$batDir = Join-Path $Env:ChocolateyInstall 'bin'
|
||||||
|
$lein = Join-Path $batDir 'lein.bat'
|
||||||
|
|
||||||
|
Write-Host "Downloading from $url"
|
||||||
|
|
||||||
|
$client = New-Object Net.WebClient
|
||||||
|
$client.DownloadFile($url, $lein)
|
||||||
|
|
||||||
|
Write-Host "Download from $url complete"
|
||||||
|
|
||||||
|
Write-Host "Executing bootstrap script from $batDir"
|
||||||
|
|
||||||
|
# $batDir is already in PATH
|
||||||
|
lein self-install
|
||||||
|
lein
|
||||||
|
lein version
|
||||||
|
|
||||||
|
Write-ChocolateySuccess $package
|
||||||
|
} catch {
|
||||||
|
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||||
|
throw
|
||||||
|
}
|
22
Leiningen/tools/chocolateyUninstall.ps1
Normal file
22
Leiningen/tools/chocolateyUninstall.ps1
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
$package = 'Leiningen'
|
||||||
|
$version = '2.2.0'
|
||||||
|
|
||||||
|
try {
|
||||||
|
$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-ChocolateySuccess $package
|
||||||
|
} catch {
|
||||||
|
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||||
|
throw
|
||||||
|
}
|
Reference in New Issue
Block a user