Skip to content

Commit

Permalink
Extra information in generated pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
wardle committed Oct 10, 2023
1 parent d649b2d commit d05a591
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
(def uber-basis (b/create-basis {:project "deps.edn", :aliases [:run]}))
(def jar-file (format "target/%s-lib-%s.jar" (name lib) version))
(def uber-file (format "target/%s-%s.jar" (name lib) version))
(def github {:org "wardle"
:repo "hermes"
:tag (str "v" version)
:file uber-file
:sha256 true})

(def citation
(str/join "\n"
Expand All @@ -33,8 +28,6 @@
(str "date-released: " (LocalDate/now))
"url: \"https://github.com/wardle/hermes\""]))



(defn clean [_]
(b/delete {:path "target"}))

Expand All @@ -53,7 +46,18 @@
:scm {:url "https://github.com/wardle/hermes"
:tag (str "v" version)
:connection "scm:git:git://github.com/wardle/hermes.git"
:developerConnection "scm:git:ssh://git@github.com/wardle/hermes.git"}})
:developerConnection "scm:git:ssh://git@github.com/wardle/hermes.git"}
:pom-data [[:description
"A library and microservice implementing the health and care terminology SNOMED CT with support for cross-maps, inference, fast full-text search, autocompletion, compositional grammar and the expression constraint language."]
[:developers
[:developer
[:id "wardle"] [:name "Mark Wardle"] [:email "mark@wardle.org"] [:url "https://wardle.org"]]]
[:organization [:name "Eldrix Ltd"]]
[:licenses
[:license
[:name "The Apache Software License, Version 2.0"]
[:url "http://www.apache.org/licenses/LICENSE-2.0.txt"]
[:distribution "repo"]]]]})
(b/copy-dir {:src-dirs ["src" "resources"]
:target-dir class-dir})
(b/jar {:class-dir class-dir
Expand All @@ -70,7 +74,6 @@
:version version
:jar-file jar-file}))


(defn deploy
"Deploy library to clojars.
Environment variables CLOJARS_USERNAME and CLOJARS_PASSWORD must be set."
Expand Down Expand Up @@ -109,4 +112,8 @@
[_]
(uber nil)
(println "Deploying release to GitHub")
(gh/release-artifact github))
(gh/release-artifact {:org "wardle"
:repo "hermes"
:tag (str "v" version)
:file uber-file
:sha256 true}))

0 comments on commit d05a591

Please sign in to comment.