-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
52 lines (41 loc) · 1.9 KB
/
project.clj
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
(defproject hello-clojure "0.1.0"
:description "学习clojure(script)"
:url "https://github.com/vinurs/hello-clojure"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.10.1"]
[ring "1.7.0"]
[aleph "0.4.6"]
;; 日志
[com.taoensso/timbre "4.10.0"]
[metosin/reitit "0.3.7"]
;; logback框架
[ch.qos.logback/logback-classic "1.2.3"]
;; SLF4J binding for Clojure's Timbre logging library
[com.fzakaria/slf4j-timbre "0.3.13"]
[org.slf4j/log4j-over-slf4j "1.7.26"]
[org.slf4j/jul-to-slf4j "1.7.26"]
[org.slf4j/jcl-over-slf4j "1.7.26"]
;; 数据库连接
[org.clojure/java.jdbc "0.7.9"]
;; mysql驱动
;; [mysql/mysql-connector-java "5.1.45"]
[mysql/mysql-connector-java "8.0.16"]
;; postgresql驱动
[org.postgresql/postgresql "42.2.5"]
;; ms sqlserver驱动
[com.microsoft.sqlserver/mssql-jdbc "7.2.2.jre11"]
;; 直接根据sql文件来生成函数,这个其实可以不用包含了,conman里面应该已经有了
[com.layerware/hugsql "0.4.9" :exclusions [org.clojure/java.jdbc]]
;; 数据库连接池
;; clojure封装的HikariCP JDBC连接池
[hikari-cp "2.7.1"]
;; 在hikari-cp上面更进一步的封装,直接调用
[conman "0.8.3"]
;; timer
[tools-timer "1.0.4"]
[mount "0.1.16"]]
;; 主函数入口
:main ^:skip-aot hello-clojure.main
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})