Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jar pom.xml license #12

Merged
merged 3 commits into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,30 @@
(defn clean [_]
(b/delete {:path "target"}))

(defn- pom-template [version]
[[:description "The next generation of clojure.java.jdbc: a new low-level Clojure wrapper for JDBC-based access to databases."]
[:url "https://github.com/seancorfield/next-jdbc"]
[:licenses
[:license
[:name "APACHE LICENSE, VERSION 2.0"]
[:url "https://www.apache.org/licenses/LICENSE-2.0"]]]
[:developers
[:developer
[:name "Janet A. Carr"]]]
[:scm
[:url "https://github.com/janetacarr/quadtree-cljc"]
[:connection "scm:git:https://github.com/janetacarr/quadtree-cljc.git"]
[:developerConnection "scm:git:ssh://[email protected]/janetacarr/quadtree-cljc.git"]
[:tag version]]])

(defn jar [_]
(clean nil)
(b/write-pom {:class-dir class-dir
:lib lib
:version version
:basis basis
:src-dirs ["src"]})
:src-dirs ["src"]
:pom-data (pom-template version)})
(b/copy-dir {:src-dirs ["src"]
:target-dir class-dir})
(b/jar {:class-dir class-dir
Expand Down
Loading