Clojure

Clojure Downloads

Stable Release: 1.10.1 (June 6, 2019)

Older Releases

Clojure Source

Clojure源代码托管在github.com/clojure/clojure中 . 最新版本的Clojure master分支的构建可在oss.sonatype.org上找到 .

Get Clojure

Via deps.edn

在deps.edn中指定所需的Clojure版本:

{:deps
 {org.clojure/clojure {:mvn/version "1.10.0"}}}

Via Leiningen

修改Leiningen project.clj文件的依赖项和存储库部分,并指定所需的Clojure版本:

; under dependencies, select the release of clojure that you want
:dependencies [[org.clojure/clojure "1.10.0"]]

Using Clojure and contrib SNAPSHOT releases

大多数工具不会自动包括声纳快照存储库. 要使用SNAPSHOT版本,必须将其添加到配置中:

In deps.edn

在deps.edn中添加其他存储库:

{:mvn/repos
 {"sonatype-oss-public" {:url "https://oss.sonatype.org/content/groups/public/"}}}

In Leiningen

在莱宁根的project.clj中添加快照存储库:

:repositories {"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"}

In Maven

在pom.xml中:

<repositories>
  <repository>
    <id>sonatype-oss-public</id>
    <url>https://oss.sonatype.org/content/groups/public/</url>
    <releases>
      <enabled>true</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>