-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
188 lines (149 loc) · 6.92 KB
/
build.gradle
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
buildscript {
repositories { mavenCentral() }
}
/* begin::Define plugin version */
plugins {
/* id 'org.springframework.boot' version '2.1.3.RELEASE' */
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'war'
}
/* end::Define plugin version */
/* begin::Define version */
ext {
springBootVersion = '2.1.3.RELEASE'
ngxBlobsO2jwtVersion = '1.0.0'
fileArchived = 'ngx-blobs-o2jwt'
}
/* end::Define version */
/* begin::Define destination build */
group = 'com.phuocnguyen.app'
version = "${ngxBlobsO2jwtVersion}"
sourceCompatibility = '1.8'
/* end::Define destination build */
repositories {
mavenCentral()
}
/* begin::Define env dev*/
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'eclipse'
/* end::Define env dev */
/* begin::Define output built */
/* begin::Jar */
jar {
version("${ngxBlobsO2jwtVersion}")
}
/* end::Jar */
/* begin::War */
war {
version("${ngxBlobsO2jwtVersion}")
}
/* end::War */
/* end::Define output built */
/* begin::Dependencies */
dependencies {
/* begin::Support testing */
testCompile('org.springframework.boot:spring-boot-starter-test')
implementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
testCompile group: 'org.springframework', name: 'spring-mock', version: '2.0.8'
/* end::Support testing */
/* begin::Support Spring Basic */
compile('org.springframework.boot:spring-boot-starter')
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-configuration-processor'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: '2.2.4.RELEASE'
/* end::Support Spring Basic */
/* begin::Support Authentication & Authorization */
compile group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.1'
implementation 'org.springframework.boot:spring-boot-starter-security'
compile 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.2.RELEASE'
compile group: 'org.springframework.security', name: 'spring-security-jwt', version: '1.0.10.RELEASE'
compile group: 'org.springframework.security.oauth', name: 'spring-security-oauth2', version: '2.3.5.RELEASE'
/* end::Support Authentication & Authorization */
/* begin::Support Make Request */
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.12'
implementation group: 'com.konghq', name: 'unirest-java', version: '3.13.10'
/* end::Support Make Request */
/* begin::Support Websocket */
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-websocket', version: '2.4.5'
/* end::Support Websocket */
/* begin::Support Database */
compile group: 'com.google.firebase', name: 'firebase-admin', version: '6.9.0'
compile group: 'com.firebase', name: 'firebase-token-generator', version: '2.0.0'
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.18'
runtimeOnly 'org.postgresql:postgresql'
/* end::Support Database */
/* begin::Cache */
compile group: 'org.springframework.data', name: 'spring-data-redis', version: '2.3.4.RELEASE'
compile group: 'redis.clients', name: 'jedis', version: '3.1.0'
implementation group: 'io.lettuce', name: 'lettuce-core', version: '5.1.7.RELEASE'
/* end::Cache */
/* begin::Support build project */
compile('javax.xml.bind:jaxb-api:2.3.0')
compile('javax.activation:activation:1.1')
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core'
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-joda'
compile group: 'org.glassfish', name: 'javax.json', version: '1.0.4'
/* end::Support build project */
/* begin::Support validation, utils */
/* 1. begin::Object Json */
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
compile group: 'javax.json', name: 'javax.json-api', version: '1.1.4'
compile group: 'org.json', name: 'json', version: '20200518'
/* 1. end::Object Json */
/* 2. begin::Validator commons, upload */
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.8.1'
compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.2.1'
compile group: 'commons-httpclient', name: 'commons-httpclient', version: '3.1'
compile group: 'commons-validator', name: 'commons-validator', version: '1.4.0'
compile group: 'commons-io', name: 'commons-io', version: '2.6'
/* 2. end::Validator commons, upload */
/* 3. begin::API docs */
compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.2'
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.0.2'
/* 3. end::API docs */
/* 4. begin::ERD entity */
implementation('org.modelmapper:modelmapper:2.3.0')
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.4.21.Final'
compile group: 'org.hibernate', name: 'hibernate-validator', version: '7.0.0.Alpha1'
/* 4. end::ERD entity */
/* 5. begin::Logger core*/
compile group: 'log4j', name: 'log4j', version: '1.2.17'
/* 5. end::Logger core */
/* 6. begin::Object provider, time */
compile group: 'org.projectlombok', name: 'lombok', version: '0.11.0'
compile group: 'joda-time', name: 'joda-time', version: '2.10.6'
/* 6. end::Object provider, time */
/* end::Support validation, utils */
/* begin::Support documentation */
compile group: 'org.apache.poi', name: 'poi', version: '3.9'
compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.9'
compile "org.apache.poi:poi:3.17"
compile "org.apache.poi:poi-ooxml:3.17"
compile group: 'org.apache.commons', name: 'commons-csv', version: '1.5'
compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.13.1'
compile group: 'com.pdfcrowd', name: 'pdfcrowd', version: '4.3.5'
/* end::Support documentation */
/* begin::Support email */
compile('org.springframework.boot:spring-boot-starter-mail')
compile group: 'javax.mail', name: 'mail', version: '1.4.7'
/* end::Support email */
/* begin::Support SMS */
implementation group: 'com.plivo', name: 'plivo-java', version: '5.3.1'
runtime group: 'com.twilio.sdk', name: 'twilio', version: '7.11.0'
/* begin::Support SMS */
/*
- compile files('libs/ngx-blobs-core.jar')
- compile files('../ngx-blobs-commons/build/libs/ngx-blobs-core.jar')
*/
compile files('../ngx-blobs-commons/build/libs/ngx-blobs-core.jar')
}
/* end::Dependencies */
dependencyManagement {
imports { mavenBom("org.springframework.boot:spring-boot-dependencies:${springBootVersion}") }
}