<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged jar</title>
<link>https://ask.clojure.org/index.php/tag/jar</link>
<description></description>
<item>
<title>Will tools.build be released as a jar?</title>
<link>https://ask.clojure.org/index.php/11433/will-tools-build-be-released-as-a-jar</link>
<description>&lt;p&gt;I am developing a library with a dependency on tools.build and I would like to publish it as a jar.  Whilst tools.build is only available as a git dep, I cannot include it as a dependency in my pom file.  A wider discussion on this topic was held on this &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojurians.slack.com/archives/C6QH853H8/p1641381677207800&quot;&gt;slack thread&lt;/a&gt;, where @alexmiller requested that I raise this topic here.&lt;/p&gt;
</description>
<category>tools.build</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11433/will-tools-build-be-released-as-a-jar</guid>
<pubDate>Wed, 05 Jan 2022 15:02:43 +0000</pubDate>
</item>
<item>
<title>tools.build/jar doesn't support &quot;sections&quot; in manifest</title>
<link>https://ask.clojure.org/index.php/11358/tools-build-jar-doesnt-support-sections-in-manifest</link>
<description>&lt;p&gt;Sections are groups which start with &lt;code&gt;Name: &lt;/code&gt; and have section-specific entries in them.&lt;/p&gt;
&lt;p&gt;Capsule uses this for having platform-specific information about how to start.&lt;/p&gt;
&lt;p&gt;Here's an example of using the API to get section information:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Main-Class: clojure.main

Name: Frank
Main-Class: frank.clojure.main
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;❯ clj       
Clojure 1.10.3
user=&amp;gt; (require '[clojure.java.io :as io])
nil
user=&amp;gt; (io/input-stream &quot;/tmp/MANIFEST.MF&quot;)
#object[java.io.BufferedInputStream 0x69ce2f62 &quot;java.io.BufferedInputStream@69ce2f62&quot;]
user=&amp;gt; (def mf (java.util.jar.Manifest. (io/input-stream &quot;/tmp/MANIFEST.MF&quot;)))
#'user/mf
user=&amp;gt; (.getAttributes mf &quot;Frank&quot;)
{#object[java.util.jar.Attributes$Name 0x2e3a5237 &quot;Main-Class&quot;] &quot;frank.clojure.main&quot;}
user=&amp;gt; (.getMainAttributes mf)
{#object[java.util.jar.Attributes$Name 0x2e3a5237 &quot;Main-Class&quot;] &quot;clojure.main&quot;}
user=&amp;gt; (.getEntries mf)
{&quot;Frank&quot; {#object[java.util.jar.Attributes$Name 0x2e3a5237 &quot;Main-Class&quot;] &quot;frank.clojure.main&quot;}}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>tools.build</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11358/tools-build-jar-doesnt-support-sections-in-manifest</guid>
<pubDate>Sun, 05 Dec 2021 14:52:52 +0000</pubDate>
</item>
</channel>
</rss>