Skip to content

Commit

Permalink
Merge pull request #46 from hoplon/fix-missing-license
Browse files Browse the repository at this point in the history
Add pom-data to fix deploy on clojars
  • Loading branch information
mynomoto authored Oct 30, 2023
2 parents 00f8b95 + f9ab76d commit f0151b9
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@
(def version (format "1.0.%s" (b/git-count-revs nil)))
(def class-dir "target/classes")

(defn- pom-template [version]
[[:description "Spreadsheet-like dataflow programming in ClojureScript."]
[:url "https://github.com/hoplon/javelin"]
[:licenses
[:license
[:name "Eclipse Public License"]
[:url "http://www.eclipse.org/legal/epl-v10.html"]]]
[:developers
[:developer
[:name "Alan Dipert"]]
[:developer
[:name "Micha Niskin"]]]
[:scm
[:url "https://github.com/hoplon/javelin"]
[:connection "scm:git:https://github.com/hoplon/javelin.git"]
[:developerConnection "scm:git:ssh:[email protected]:hoplon/javelin.git"]
[:tag (str "v" version)]]])

(defn- run-task [aliases]
(println "\nRunning task for" (str/join "," (map name aliases)))
(let [basis (b/create-basis {:aliases aliases})
Expand Down Expand Up @@ -55,12 +73,11 @@
(assoc opts
:lib lib :version version
:jar-file (format "target/%s-%s.jar" lib version)
:scm {:tag (str "v" version)
:url "[email protected]:hoplon/javelin.git"}
:basis (b/create-basis {})
:class-dir class-dir
:target "target"
:src-dirs ["src" "clj-kondo"])))
:src-dirs ["src" "clj-kondo"]
:pom-data (pom-template version))))

(defn ci "Run the CI pipeline of tests (and build the JAR)." [opts]
(test opts)
Expand Down

0 comments on commit f0151b9

Please sign in to comment.