<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged 1.12.1 regression</title>
<link>https://ask.clojure.org/index.php/tag/1.12.1+regression</link>
<description></description>
<item>
<title>Is the ant build broken in Clojure 1.12.1?</title>
<link>https://ask.clojure.org/index.php/14567/is-the-ant-build-broken-in-clojure-1-12-1</link>
<description>&lt;p&gt;I have an old script that gets the Clojure source from github and calls &lt;code&gt;./antsetup.sh&lt;/code&gt; and then &lt;code&gt;ant&lt;/code&gt; to build and test.  With Clojure 1.12.1, it fails trying to compile the recently modified SwissArmy.java.  My work-around was to modify the build.xml so that the java compiler would see the build directory on the classpath.  (It's likely there's a better fix. I'm no expert with ant.)&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;diff --git a/build.xml b/build.xml index 1464b69e..8ce4a961 100644&lt;br&gt;
--- a/build.xml&lt;br&gt;
+++ b/build.xml @@ -99,6 +99,7 @@&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;       unless=&quot;maven.test.skip&quot;&amp;gt;
 &amp;lt;mkdir dir=&quot;${test-classes}&quot;/&amp;gt;
 &amp;lt;javac srcdir=&quot;${jtestsrc}&quot; destdir=&quot;${test-classes}&quot; includeJavaRuntime=&quot;yes&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;classpath=&quot;${maven.test.classpath}:${build}&quot;&lt;pre&gt;&lt;code&gt;        debug=&quot;true&quot; source=&quot;1.8&quot; target=&quot;1.8&quot; includeantruntime=&quot;no&quot;/&amp;gt;
 &amp;lt;echo&amp;gt;Direct linking = ${directlinking}&amp;lt;/echo&amp;gt;
 &amp;lt;java classname=&quot;clojure.lang.Compile&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;I think it's probably better to use &lt;code&gt;mvn test&lt;/code&gt; in my script as I'm only making sure I can build Clojure from source.  However, technically this looks like a regression and it may break some old automation.  Perhaps, ant is more trouble than it's worth at this point.  Up to you. I'm fine with dropping support.  I just wanted to point out the issue so you were aware of it.&lt;/p&gt;
</description>
<category>Compiler</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14567/is-the-ant-build-broken-in-clojure-1-12-1</guid>
<pubDate>Tue, 03 Jun 2025 14:26:14 +0000</pubDate>
</item>
</channel>
</rss>