Remove references to resources in the build file
This commit is contained in:
parent
86ff96c797
commit
a1dffc24b0
1 changed files with 2 additions and 7 deletions
|
|
@ -14,7 +14,6 @@
|
||||||
deployments. Use the `:deploy` alias to deploy to clojars."
|
deployments. Use the `:deploy` alias to deploy to clojars."
|
||||||
(:require
|
(:require
|
||||||
[clojure.java.io :as io]
|
[clojure.java.io :as io]
|
||||||
[clojure.string :as str]
|
|
||||||
[clojure.tools.build.api :as b]))
|
[clojure.tools.build.api :as b]))
|
||||||
|
|
||||||
(def lib-coord 'org.suskalo/coffi)
|
(def lib-coord 'org.suskalo/coffi)
|
||||||
|
|
@ -53,8 +52,7 @@
|
||||||
:connection "scm:git:git://github.com/IGJoshua/coffi.git"
|
:connection "scm:git:git://github.com/IGJoshua/coffi.git"
|
||||||
:developerConnection "scm:git:ssh://git@github.com/IGJoshua/coffi.git"
|
:developerConnection "scm:git:ssh://git@github.com/IGJoshua/coffi.git"
|
||||||
:tag (str "v" version)}
|
:tag (str "v" version)}
|
||||||
:src-dirs source-dirs
|
:src-dirs source-dirs}))
|
||||||
:resource-dirs resource-dirs}))
|
|
||||||
opts)
|
opts)
|
||||||
|
|
||||||
(defn pom
|
(defn pom
|
||||||
|
|
@ -70,13 +68,10 @@
|
||||||
|
|
||||||
(defn jar
|
(defn jar
|
||||||
"Generates a `coffi.jar` file in the `target/` directory.
|
"Generates a `coffi.jar` file in the `target/` directory.
|
||||||
This is a thin jar including only the sources and resources."
|
This is a thin jar including only the sources."
|
||||||
[opts]
|
[opts]
|
||||||
(write-pom opts)
|
(write-pom opts)
|
||||||
(copy-resources opts)
|
|
||||||
(when-not (exists? target-dir jar-file)
|
(when-not (exists? target-dir jar-file)
|
||||||
(b/copy-dir {:target-dir class-dir
|
|
||||||
:src-dirs resource-dirs})
|
|
||||||
(b/jar {:class-dir class-dir
|
(b/jar {:class-dir class-dir
|
||||||
:jar-file jar-file}))
|
:jar-file jar-file}))
|
||||||
opts)
|
opts)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue