Skip to content

Commit e8c47c3

Browse files
committed
regenerate site
1 parent e13eac2 commit e8c47c3

File tree

8 files changed

+22
-21
lines changed

8 files changed

+22
-21
lines changed

articles/cookbooks/cli_build_projects/index.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ <h2 id="toolsbuild-and-the-clojure-cli"><code>tools.build</code> and the Clojure
148148
:aliases
149149
{
150150
;; add this to :aliases in deps.edn:
151-
:build {:deps {io.github.clojure/tools.build
152-
{:git/tag "v0.9.4" :git/sha "76b78fe"}}
151+
:build {:deps {io.github.clojure/tools.build {:mvn/version "0.10.4"}}
153152
:ns-default build}
154153
}}
155154
</code></pre><p>The <code>-T</code> option implicitly sets <code>:paths ["."]</code> (as opposed to <code>:paths ["src"]</code>
@@ -184,7 +183,7 @@ <h2 id="toolsbuild-and-the-clojure-cli"><code>tools.build</code> and the Clojure
184183
:main-args ["-e" "(clojure-version)"]})]
185184
(b/process cmd)))
186185
</code></pre><p>We can run this with:</p><pre><code>clojure -T:build run
187-
</code></pre><p>and we'll see the version of Clojure we're running: <code>"1.11.1"</code>.</p><p><strong>Error Handling</strong></p><p>Since we will generally want the build to fail if the command exits with
186+
</code></pre><p>and we'll see the version of Clojure we're running: <code>"1.11.3"</code>.</p><p><strong>Error Handling</strong></p><p>Since we will generally want the build to fail if the command exits with
188187
a non-zero status, we'll check the return value of <code>b/process</code> and throw
189188
an exception if the exit status is non-zero:</p><pre><code class="clojure"> (when-not (zero? (:exit (b/process cmd)))
190189
(throw (ex-info (str "run failed for " aliases) opts)))
@@ -243,7 +242,7 @@ <h2 id="toolsbuild-and-the-clojure-cli"><code>tools.build</code> and the Clojure
243242
that specify versions of Clojure to test against, and then use those in a
244243
new <code>test-multi</code> function in <code>build.clj</code>.</p><p>Add these aliases to <code>deps.edn</code>:</p><pre><code class="clojure"> :1.9 {:override-deps {org.clojure/clojure {:mvn/version "1.9.0"}}}
245244
:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.3"}}}
246-
:1.11 {:override-deps {org.clojure/clojure {:mvn/version "1.11.1"}}}
245+
:1.11 {:override-deps {org.clojure/clojure {:mvn/version "1.11.3"}}}
247246
</code></pre><p>When these aliases are used in combination with other aliases, the default
248247
version of Clojure will be overridden with the specified version. We can see
249248
this by running <code>clojure -T:build run :aliases '[:1.9]'</code> and seeing <code>"1.9.0"</code>
@@ -284,7 +283,7 @@ <h2 id="toolsbuild-and-the-clojure-cli"><code>tools.build</code> and the Clojure
284283
Running tests in #{"test"}
285284

286285
Testing example-test
287-
1.11.1
286+
1.11.3
288287

289288
Ran 1 tests containing 1 assertions.
290289
0 failures, 0 errors.
@@ -318,13 +317,14 @@ <h2 id="toolsbuild-and-the-clojure-cli"><code>tools.build</code> and the Clojure
318317
build a SNAPSHOT or a release version of the library).</p><p>The global variables defining <code>lib</code>, <code>version</code>, etc could be moved to the
319318
<code>jar-opts</code> function but some people will find it easier to read your <code>build.clj</code>
320319
file if they are defined at the top of the file.</p><p>You might end up with something like:</p><pre><code class="clojure">(defn- jar-opts [opts]
321-
(let [lib 'my/lib
320+
(let [lib 'my/lib ; group/artifact
322321
version "1.2.3"
323322
target "target"
324323
classes (str target "/classes")]
325324
(assoc opts
326325
:lib lib
327326
:version version
327+
;; group/artifact-version.jar is the expected naming convention:
328328
:jar-file (format "target/%s-%s.jar" lib version)
329329
:scm {:tag (str "v" version)}
330330
:basis (b/create-basis {})
@@ -360,7 +360,7 @@ <h2 id="toolsbuild-and-the-clojure-cli"><code>tools.build</code> and the Clojure
360360
&lt;dependency&gt;
361361
&lt;groupId&gt;org.clojure&lt;/groupId&gt;
362362
&lt;artifactId&gt;clojure&lt;/artifactId&gt;
363-
&lt;version&gt;1.11.1&lt;/version&gt;
363+
&lt;version&gt;1.11.3&lt;/version&gt;
364364
&lt;/dependency&gt;
365365
&lt;/dependencies&gt;
366366
&lt;repositories&gt;
@@ -430,7 +430,7 @@ <h2 id="toolsbuild-and-the-clojure-cli"><code>tools.build</code> and the Clojure
430430
(dd/deploy {:installer :remote :artifact (b/resolve-path jar-file)
431431
:pom-file (b/pom-path (select-keys opts [:lib :class-dir]))}))
432432
opts)
433-
</code></pre><p><strong>Clojars credentials</strong></p><p>Per the <code>deps-deploy</code> README, you'll need to set up environment variables
433+
</code></pre><blockquote><p>Note: the expected naming convention for JAR files on Clojars is <code>group/artifact-version.jar</code> so you should ensure that your <code>:lib</code> and <code>:version</code> values are set up correctly in your <code>jar-opts</code> function (see above).</p></blockquote><p><strong>Clojars credentials</strong></p><p>Per the <code>deps-deploy</code> README, you'll need to set up environment variables
434434
for your Clojars username and token: <code>CLOJARS_USERNAME</code> and <code>CLOJARS_PASSWORD</code>
435435
(even tho' it is <strong>not</strong> your password, it's a deployment token you need to
436436
setup in your Clojars account).</p><p>You can now deploy your JAR file to Clojars with:</p><pre><code>clojure -T:build deploy

articles/cookbooks/date_and_time/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77

88
<meta name="description" content="This cookbook covers working with Java&#39;s java.time package in two styles, the
9-
first with interop and the second using libraries.This guide covers Clojure 1.11.1 and Java 8 or later.">
9+
first with interop and the second using libraries.This guide covers Clojure 1.11.3 and Java 8 or later.">
1010

1111
<meta property="og:description" content="This cookbook covers working with Java&#39;s java.time package in two styles, the
12-
first with interop and the second using libraries.This guide covers Clojure 1.11.1 and Java 8 or later.">
12+
first with interop and the second using libraries.This guide covers Clojure 1.11.3 and Java 8 or later.">
1313

1414
<meta property="og:url" content="https://clojure-doc.org/articles/cookbooks/date_and_time/" />
1515
<meta property="og:title" content="Date and Time" />
@@ -65,7 +65,7 @@ <h2>Date and Time</h2>
6565
</div>
6666

6767
<p>This cookbook covers working with Java's <code>java.time</code> package in two styles, the
68-
first with interop and the second using libraries.</p><p>This guide covers Clojure 1.11.1 and Java 8 or later.</p><p>This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution
68+
first with interop and the second using libraries.</p><p>This guide covers Clojure 1.11.3 and Java 8 or later.</p><p>This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution
6969
3.0 Unported License</a> (including images &amp; stylesheets). The source is
7070
available <a href="https://github.com/clojure-doc/clojure-doc.github.io">on Github</a>.</p><h1 id="introduction">Introduction</h1><p>This cookbook does not assume a background in Java, if you have such a
7171
background the interop section might be of interest.</p><p>This cookbook will be useful if you got your Clojure environment setup, know
@@ -75,7 +75,7 @@ <h2>Date and Time</h2>
7575
literal</a> is used
7676
to represent a <code>java.util.Date</code> object.</li></ul><p>While in JavaScript:
7777
TBD</p><h2 id="libraries">Libraries</h2><ul><li><a href="https://github.com/dm3/clojure.java-time">clojure.java-time</a><blockquote><p>A Clojure wrapper for Java 8 Date-Time API.</p></blockquote></li><li><a href="https://github.com/henryw374/cljc.java-time">cljc.java-time</a><blockquote><p>A Clojure(Script) library which mirrors the java.time api through kebab-case-named vars.</p></blockquote></li><li><a href="https://github.com/juxt/tick">tick</a><blockquote><p>A Clojure(Script) &amp; babashka library for dealing with time. Intended as a replacement for clj-time.</p></blockquote></li></ul><h1 id="preliminaries">Preliminaries</h1><p>The examples below assume the following <code>deps.edn</code></p><pre><code class="clojure">{:paths ["src"]
78-
:deps {org.clojure/clojure {:mvn/version "1.11.1"}
78+
:deps {org.clojure/clojure {:mvn/version "1.11.3"}
7979
clojure.java-time/clojure.java-time {:mvn/version "1.3.0"}
8080
com.widdindustries/cljc.java-time {:mvn/version "0.1.21"}}}
8181
</code></pre><h1 id="recipes">Recipes</h1><h2 id="clojurejava-time"><code>clojure.java-time</code></h2><h3 id="basics">Basics</h3><p>For the people coming from a non-Java background, we are creating an <em>instance</em>

articles/cookbooks/parsing_xml_with_zippers/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h2>Parsing XML in Clojure</h2>
8484
:url ""
8585
:license {:name "Eclipse Public License"
8686
:url "https://www.eclipse.org/legal/epl-v10.html"}
87-
:dependencies [[org.clojure/clojure "1.11.1"]
87+
:dependencies [[org.clojure/clojure "1.11.3"]
8888
[org.clojure/data.zip "1.0.0"]])
8989
</code></pre><p>We are including a dependency on
9090
<a href="https://github.com/clojure/data.zip">clojure.data.zip</a>, which is a

articles/ecosystem/libraries_authoring/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ <h2>Ecosystem: Library Development and Distribution</h2>
7979
as the name of the new project we create and publish here, but you
8080
can use whatever name you want -- just remember to substitute that
8181
wherever you see <code>my-cool-lib</code> in this guide.</p><p>This guide uses Clojure 1.11 and a recent version of the Clojure CLI
82-
(at least 1.11.1.1139), and requires you have <code>git</code>
82+
(at least 1.11.1.1139; current version is 1.11.3.1463 as of May 2024),
83+
and requires you have <code>git</code>
8384
installed (though very little familiarity with <code>git</code> is required).</p><blockquote><p>Note: you should always ensure you have an up-to-date version of the Clojure CLI installed! See <a href="https://clojure.org/releases/tools">Tools Releases</a>. Several of the examples here require 1.11.1.1139 or later: <code>clojure -version</code> should tell you the version you have installed.</p></blockquote><p>It's assumed that you're already somewhat familiar with Clojure. If
8485
not, see the <a href="/articles/tutorials/getting_started/">Getting Started</a> and
8586
<a href="/articles/tutorials/introduction/">Introduction</a> guides.</p><p>This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/3.0/">Creative Commons

articles/tutorials/basic_web_development/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h2>Basic Web Development</h2>
8080
<a href="/articles/tutorials/introduction/">Introduction</a> guides.</p><p>This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/3.0/">Creative Commons
8181
Attribution 3.0 Unported License</a> (including images &amp;
8282
stylesheets). The source is available <a href="https://github.com/clojure-doc/clojure-doc.github.io">on
83-
Github</a>.</p><p>This guide uses Clojure 1.11.1, as well as current versions of the
83+
Github</a>.</p><p>This guide uses Clojure 1.11.3, as well as current versions of the
8484
component libraries noted below.</p><h2 id="conceptual-overview-of-components">Conceptual Overview of Components</h2><p>We'll use four major components (briefly described below) for our
8585
little webapp:</p><ul><li>Ring</li><li>Compojure</li><li>Hiccup</li><li>H2</li></ul><h3 id="ring">Ring</h3><p><a href="https://github.com/ring-clojure/ring">Ring</a> (<a href="https://clojars.org/ring">at
8686
clojars</a>) is a foundational Clojure web
@@ -236,7 +236,7 @@ <h2>Basic Web Development</h2>
236236
the value for that column.</p><p>You can try the code out in the <code>comment</code> form by evaluating each expression
237237
in it, and you should see the same results as the inline comments show.</p><p>You can also try those calls yourself in a standalone REPL,
238238
if you like:</p><pre><code class="clojure">clj
239-
Clojure 1.11.1
239+
Clojure 1.11.3
240240
user=&gt; (require 'my-webapp.db)
241241
nil
242242
;; you must require a namespace before you go into it:

articles/tutorials/getting_started_cli/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h2>Getting Started with the Clojure CLI</h2>
8080
see the list of all the options available.</p><h2 id="trying-out-the-repl">Trying out the REPL</h2><p>Once you have the Clojure CLI installed, you can run it from anywhere you like
8181
to get a REPL:</p><pre><code>$ clj
8282
</code></pre><p>You should be greeted with the Clojure version and a "<code>user=&gt;</code>" prompt. Try it out:</p><pre><code class="clojure">$ clj
83-
Clojure 1.11.1
83+
Clojure 1.11.3
8484
user=&gt; (+ 1 1)
8585
;; ⇒ 2
8686
user=&gt; (distinct [:a :b :a :c :a :d])
@@ -109,10 +109,10 @@ <h2>Getting Started with the Clojure CLI</h2>
109109
<code>clojure.main</code> can also evaluate expressions:</p><pre><code>$ clojure -M -e '(println "Hello, Command!")'
110110
Hello, Command!
111111
</code></pre><p>or:</p><pre><code>$ clojure -M -e '(clojure-version)'
112-
"1.11.1"
112+
"1.11.3"
113113
</code></pre><p>The <code>-e</code> option prints the value returned by the expression (if it is not <code>nil</code>).</p><h3 id="working-in-the-repl">Working in the REPL</h3><p>In your project directory, start up a repl (<code>clj</code>) and
114114
run your <code>-main</code> function to see its output in the repl:</p><pre><code>$ clj
115-
Clojure 1.11.1
115+
Clojure 1.11.3
116116
user=&gt; (require 'my.proj)
117117
nil
118118
user=&gt; (my.proj/-main)

cryogen.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><atom:link href="https://clojure-doc.org/" rel="self" type="application/rss+xml"/><title>Clojure Guides</title><link>https://clojure-doc.org/</link><description>Clojure Documentation</description><lastBuildDate>Sat, 06 Jul 2024 10:46:42 -0700</lastBuildDate><generator>clj-rss</generator></channel></rss>
1+
<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><atom:link href="https://clojure-doc.org/" rel="self" type="application/rss+xml"/><title>Clojure Guides</title><link>https://clojure-doc.org/</link><description>Clojure Documentation</description><lastBuildDate>Sat, 06 Jul 2024 11:00:08 -0700</lastBuildDate><generator>clj-rss</generator></channel></rss>

feed.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><atom:link href="https://clojure-doc.org/" rel="self" type="application/rss+xml"/><title>Clojure Guides</title><link>https://clojure-doc.org/</link><description>Clojure Documentation</description><lastBuildDate>Sat, 06 Jul 2024 10:46:42 -0700</lastBuildDate><generator>clj-rss</generator></channel></rss>
1+
<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><atom:link href="https://clojure-doc.org/" rel="self" type="application/rss+xml"/><title>Clojure Guides</title><link>https://clojure-doc.org/</link><description>Clojure Documentation</description><lastBuildDate>Sat, 06 Jul 2024 11:00:08 -0700</lastBuildDate><generator>clj-rss</generator></channel></rss>

0 commit comments

Comments
 (0)