-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathproject.clj
More file actions
85 lines (70 loc) · 4.36 KB
/
project.clj
File metadata and controls
85 lines (70 loc) · 4.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
(def i18n-version "1.0.4")
(defproject org.openvoxproject/ssl-utils "3.6.5-SNAPSHOT"
:url "http://www.github.com/openvoxproject/jvm-ssl-utils"
:license {:name "Apache-2.0"
:url "https://www.apache.org/licenses/LICENSE-2.0.txt"}
:description "SSL certificate management on the JVM."
:min-lein-version "2.9.10"
;; Abort when version ranges or version conflicts are detected in
;; dependencies. Also supports :warn to simply emit warnings.
:pedantic? :abort
;; Generally, try to keep version pins in :managed-dependencies and the libraries
;; this project actually uses in :dependencies, inheriting the version from
;; :managed-dependencies. This prevents endless version conflicts due to deps of deps.
;; Renovate should keep the versions largely in sync between projects.
:managed-dependencies [[org.clojure/clojure "1.12.5"]
[org.clojure/tools.logging "1.3.1"]
[commons-io "2.22.0"]
[org.bouncycastle/bcpkix-jdk18on "1.84"]
[org.bouncycastle/bcpkix-fips "1.0.8"]
[org.bouncycastle/bc-fips "1.0.2.6"]
[org.bouncycastle/bctls-fips "1.0.19"]
[org.openvoxproject/i18n ~i18n-version]
[prismatic/schema "1.4.1"]]
:dependencies [[org.clojure/clojure]
[org.clojure/tools.logging]
[org.openvoxproject/i18n]
[prismatic/schema]]
:source-paths ["src/clojure"]
:java-source-paths ["src/java"]
:jar-exclusions [#".*\.java$"]
;; By declaring a classifier here and a corresponding profile below we'll get an additional jar
;; during `lein jar` that has all the source code (including the java source). Downstream projects can then
;; depend on this source jar using a :classifier in their :dependencies.
:classifiers [["sources" :sources-jar]]
:profiles {:dev {:dependencies [[org.bouncycastle/bcpkix-jdk18on]]
:resource-paths ["test-resources"]}
;; per https://github.com/technomancy/leiningen/issues/1907
;; the provided profile is necessary for lein jar / lein install
:provided {:dependencies [[org.bouncycastle/bcpkix-jdk18on]]
:resource-paths ["test-resources"]}
:fips {:dependencies [[org.bouncycastle/bctls-fips]
[org.bouncycastle/bcpkix-fips]
[org.bouncycastle/bc-fips]]
;; this only ensures that we run with the proper profiles
;; during testing. This JVM opt will be set in the puppet module
;; that sets up the JVM classpaths during installation.
:jvm-opts ~(let [version (System/getProperty "java.specification.version")
[major minor _] (clojure.string/split version #"\.")
unsupported-ex (ex-info "Unsupported major Java version. Expects 17 or 21."
{:major major
:minor minor})]
(condp = (java.lang.Integer/parseInt major)
17 ["-Djava.security.properties==jdk17-fips-security"]
21 ["-Djava.security.properties==jdk21-fips-security"]
25 ["-Djava.security.properties==jdk25-fips-security"]
(throw unsupported-ex)))
:resource-paths ["test-resources"]}
:sources-jar {:java-source-paths ^:replace []
:jar-exclusions ^:replace []
:source-paths ^:replace ["src/clojure" "src/java"]}}
:plugins [[org.openvoxproject/i18n ~i18n-version]
[jonase/eastwood "1.4.3" :exclusions [org.clojure/clojure]]]
:eastwood {:exclude-linters [:no-ns-form-found :reflection]
:continue-on-exception true}
:lein-release {:scm :git
:deploy-via :lein-deploy}
:deploy-repositories [["releases" {:url "https://clojars.org/repo"
:username :env/CLOJARS_USERNAME
:password :env/CLOJARS_PASSWORD
:sign-releases false}]])