-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
213 lines (169 loc) · 7.61 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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
buildscript {
ext { springBootVersion = '2.2.4.RELEASE'
hibernateVersion = '5.11.0.Final'
httpClientVersion = '4.5.11'
swaggerVersion = '2.9.2'
}
repositories {
mavenCentral()
}
dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath ("com.moowork.gradle:gradle-node-plugin:1.0.1")
}
}
plugins {
id "com.gorylenko.gradle-git-properties" version "2.2.1"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'jacoco'
apply plugin:"com.moowork.node"
task buildClientDev(type: NpmTask, dependsOn: 'npmInstall') {
group = 'build'
description = 'Compile client side assets for development'
args = ['run', 'buildDev']
}
task buildClient(type: NpmTask, dependsOn: 'npmInstall') {
group = 'build'
description = 'Compile client side assets for production'
args = ['run', 'build']
}
jar {
archiveBaseName = 'shiohara-lms'
archiveVersion = '0.3.0'
}
gitProperties {
extProperty = 'gitProps' // git properties will be put in a map at project.ext.gitProps
}
bootJar {
manifest {
attributes(
'Implementation-Version': "${-> project.jar.version + '-' + project.ext.gitProps['git.commit.id.abbrev']}"
)
}
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task stage(dependsOn: ['build', 'clean'])
build.mustRunAfter clean
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile
destinationDir = file("docs/core")
}
dependencies {
// Spring Boot
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: "${springBootVersion}"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version:"${springBootVersion}"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: "${springBootVersion}"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-parent', version:"${springBootVersion}"
// implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security', version:"${springBootVersion}"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-activemq', version:"${springBootVersion}"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf', version:"${springBootVersion}"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version:"${springBootVersion}"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-cache', version:"${springBootVersion}"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-mail', version:"${springBootVersion}"
implementation group: 'org.apache.axis', name: 'axis', version: '1.4'
implementation group: 'org.apache.axis', name: 'axis-jaxrpc', version: '1.4'
implementation group: 'commons-discovery', name: 'commons-discovery', version: '0.4'
// Spring
implementation group: 'org.springframework', name: 'spring-test', version: '5.2.3.RELEASE'
// Jackson
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-hibernate5', version: '2.9.8'
// Oracle
implementation group: 'com.oracle.ojdbc', name: 'ojdbc8', version: '19.3.0.0'
// H2
implementation group: 'com.h2database', name: 'h2', version:'1.4.199'
// MariaDB
implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '2.4.1'
// JSON
implementation group: 'org.json', name: 'json', version:'20180813'
// Apache Commons
implementation group: 'org.apache.commons', name: 'commons-compress', version: '1.18'
implementation group: 'commons-io', name: 'commons-io', version:'2.6'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.8.1'
// Apache POI
implementation group: 'org.apache.poi', name: 'poi', version: '4.1.0'
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '4.1.0'
// HTTP Client
implementation(group: 'org.apache.httpcomponents', name: 'httpclient', version:"${httpClientVersion}") {
exclude(module: 'commons-logging')
}
implementation group: 'org.apache.httpcomponents', name: 'httpmime', version:"${httpClientVersion}"
// JSoup
implementation group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
// Hibernate
implementation group: 'org.hibernate', name: 'hibernate-search-engine', version: "${hibernateVersion}"
implementation group: 'org.hibernate', name: 'hibernate-search-orm', version: "${hibernateVersion}"
//Hazelcast
implementation group: 'com.hazelcast', name: 'hazelcast'
implementation group: 'com.hazelcast', name: 'hazelcast-spring'
// Swagger 2
implementation group: 'io.springfox', name: 'springfox-swagger2', version: "${swaggerVersion}"
implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: "${swaggerVersion}"
// Gson - is used by reCAPTCHA
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
/// Payment Slip
implementation group: 'br.com.caelum.stella', name: 'caelum-stella-boleto', version: '2.1.2'
implementation group: 'com.lowagie', name: 'itext', version: '2.1.7'
// Thumbnailator
implementation group: 'net.coobird', name: 'thumbnailator', version: '0.4.8'
// Tika
implementation group: 'org.apache.tika', name: 'tika-core', version:'1.5'
implementation group: 'org.apache.tika', name: 'tika-parsers', version:'1.5'
// Javadoc - Need this package
implementation 'javax.interceptor:javax.interceptor-api:1.2.2'
implementation group: 'ldapsdk', name: 'ldapsdk', version: '4.1'
// WebJars
implementation 'org.webjars.bower:jquery:1.12.4'
implementation 'org.webjars.bower:jquery.ui:1.11.3'
implementation 'org.webjars:bootstrap:3.3.7-1' // Content
implementation 'org.webjars.bower:bootstrap:4.1.1' // Preview
implementation 'org.webjars.bower:moment:2.20.1'
implementation 'org.webjars.bower:angular:1.6.9'
implementation 'org.webjars.bower:ace-builds:1.3.1'
implementation 'org.webjars.bower:tinymce:4.5.8'
implementation 'org.webjars.bower:angular-ui-router:1.0.14'
implementation 'org.webjars.bower:angular-translate:2.17.0'
implementation 'org.webjars.bower:angular-resource:1.6.9'
implementation 'org.webjars.bower:angular-animate:1.6.9'
implementation 'org.webjars.bower:angular-sanitize:1.6.9'
implementation 'org.webjars.bower:angular-bootstrap:2.5.0'
implementation 'org.webjars.bower:angular-cookies:1.6.9'
implementation 'org.webjars.bower:angular-moment:1.2.0'
implementation 'org.webjars.bower:angular-ui-ace:0.2.3'
implementation 'org.webjars.bower:font-awesome:4.7.0'
implementation 'org.webjars.bower:ng-file-upload:12.2.13'
implementation 'org.webjars.bower:angular-ui-notification:0.3.6'
implementation 'org.webjars.bower:angular-ui-tinymce:0.0.19'
implementation 'org.webjars.bower:angular-ui-sortable:0.14.3'
implementation 'org.webjars.bower:angular-ui-select:0.19.8'
implementation 'org.webjars.bower:ngInfiniteScroll:1.3.4'
testImplementation('org.springframework.boot:spring-boot-starter-test')
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
bootRun {
if (project.hasProperty('args')) {
args project.args.split(',')
}
}
check.dependsOn jacocoTestReport
}