-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.gradle
366 lines (297 loc) · 16.6 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
import de.undercouch.gradle.tasks.download.Download
apply plugin: 'com.github.ben-manes.versions'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-tomcat-plugin:2.2.2'
classpath 'de.undercouch:gradle-download-task:3.1.0'
classpath 'com.github.ben-manes:gradle-versions-plugin:+'
}
}
group 'nl.strohalm'
version '3.7.3'
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'com.bmuschko.tomcat'
apply plugin: 'de.undercouch.download'
sourceCompatibility = 1.8
repositories {
jcenter()
flatDir {
dirs 'libs'
}
maven {
url 'http://52north.org/maven/repo/releases/'
}
}
configurations {
embeddedJetty
}
dependencies {
// I copied the versions from the jar file names in the Cyclos lib folder.
// Antlr
// http://mvnrepository.com/artifact/antlr/antlr
//compile group: 'antlr', name: 'antlr', version: '2.7.7'
compile group: 'org.antlr', name: 'antlr4-runtime', version: '4.5.3'
// AOP Alliance
// http://mvnrepository.com/artifact/aopalliance/aopalliance
compile group: 'aopalliance', name: 'aopalliance', version: '1.0'
// Apache
// Commons
// http://mvnrepository.com/artifact/commons-beanutils/commons-beanutils
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.2'
// http://mvnrepository.com/artifact/commons-chain/commons-chain
compile group: 'commons-chain', name: 'commons-chain', version: '1.2'
// http://mvnrepository.com/artifact/commons-cli/commons-cli
compile group: 'commons-cli', name: 'commons-cli', version: '1.3.1'
// http://mvnrepository.com/artifact/commons-codec/commons-codec
compile group: 'commons-codec', name: 'commons-codec', version: '1.10'
// http://mvnrepository.com/artifact/commons-collections/commons-collections
compile group: 'commons-collections', name: 'commons-collections', version: '3.2.2'
// http://mvnrepository.com/artifact/commons-digester/commons-digester
compile group: 'commons-digester', name: 'commons-digester', version: '2.1'
// http://mvnrepository.com/artifact/commons-fileupload/commons-fileupload
compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.1'
// http://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
// http://mvnrepository.com/artifact/commons-io/commons-io
compile group: 'commons-io', name: 'commons-io', version: '1.3.1'
// http://mvnrepository.com/artifact/org.apache.commons/commons-lang3
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
// http://mvnrepository.com/artifact/commons-logging/commons-logging
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
// http://mvnrepository.com/artifact/org.apache.commons/commons-math3
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
// http://mvnrepository.com/artifact/org.apache.ws.xmlschema/xmlschema-core
compile group: 'org.apache.ws.xmlschema', name: 'xmlschema-core', version: '2.2.1'
// CXF
// https://mvnrepository.com/artifact/org.apache.cxf/cxf-bundle-compatible
compile group: 'org.apache.cxf', name: 'cxf-bundle-compatible', version: '3.1.6'
// Log4j
// http://mvnrepository.com/artifact/log4j/log4j
compile group: 'log4j', name: 'log4j', version: '1.2.17'
// Lucene
// http://mvnrepository.com/artifact/org.apache.lucene/lucene-core
compile group: 'org.apache.lucene', name: 'lucene-core', version: '4.10.4'
// http://mvnrepository.com/artifact/org.apache.lucene/lucene-queryparser
compile group: 'org.apache.lucene', name: 'lucene-queryparser', version: '4.10.4'
// http://mvnrepository.com/artifact/org.apache.lucene/lucene-analyzers-common
compile group: 'org.apache.lucene', name: 'lucene-analyzers-common', version: '4.10.4'
// http://mvnrepository.com/artifact/org.apache.lucene/lucene-queries
compile group: 'org.apache.lucene', name: 'lucene-queries', version: '4.10.4'
// http://mvnrepository.com/artifact/org.apache.lucene/lucene-misc
compile group: 'org.apache.lucene', name: 'lucene-misc', version: '4.10.4'
// Neethi
// http://mvnrepository.com/artifact/org.apache.neethi/neethi
compile group: 'org.apache.neethi', name: 'neethi', version: '3.0.3'
// Struts
// http://mvnrepository.com/artifact/org.apache.struts/struts-core
compile group: 'org.apache.struts', name: 'struts-core', version: '1.3.10'
// http://mvnrepository.com/artifact/org.apache.struts/struts-extras
compile group: 'org.apache.struts', name: 'struts-extras', version: '1.3.10'
// http://mvnrepository.com/artifact/org.apache.struts/struts-taglib
compile group: 'org.apache.struts', name: 'struts-taglib', version: '1.3.10'
// http://mvnrepository.com/artifact/org.apache.struts/struts-tiles
compile group: 'org.apache.struts', name: 'struts-tiles', version: '1.3.10'
// XML Commons
// http://mvnrepository.com/artifact/xml-resolver/xml-resolver
compile group: 'xml-resolver', name: 'xml-resolver', version: '1.2'
// ASM (2.2.2 of util was not available, so I used 2.2.3)
// http://mvnrepository.com/artifact/asm/asm
compile group: 'asm', name: 'asm', version: '3.3.1'
// http://mvnrepository.com/artifact/asm/asm-commons
compile group: 'org.ow2.asm', name: 'asm-commons', version: '4.1'
// http://mvnrepository.com/artifact/asm/asm-util
compile group: 'asm', name: 'asm-util', version: '3.3.1'
// AspectJ compile (the jar file did not have a version, so I used the latest)
// http://mvnrepository.com/artifact/org.aspectj/aspectjrt
compile group: 'org.aspectj', name: 'aspectjrt', version: '1.8.9'
// http://mvnrepository.com/artifact/org.aspectj/aspectjweaver
compile group: 'org.aspectj', name: 'aspectjweaver', version: '1.8.9'
// Avalon Framework
// http://mvnrepository.com/artifact/avalon-framework/avalon-framework
compile group: 'avalon-framework', name: 'avalon-framework', version: '4.1.5'
// Batik
// http://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-awt-util
compile group: 'org.apache.xmlgraphics', name: 'batik-awt-util', version: '1.8'
// http://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-dom
compile group: 'org.apache.xmlgraphics', name: 'batik-dom', version: '1.8'
// http://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-svggen
compile group: 'org.apache.xmlgraphics', name: 'batik-svggen', version: '1.8'
// http://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-util
compile group: 'org.apache.xmlgraphics', name: 'batik-util', version: '1.8'
// http://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-xml
compile group: 'org.apache.xmlgraphics', name: 'batik-xml', version: '1.8'
// C3P0
// http://mvnrepository.com/artifact/com.mchange/c3p0
compile group: 'com.mchange', name: 'c3p0', version: '0.9.5.2'
// Cewolf
// http://mvnrepository.com/artifact/cewolf/cewolf
compile(group: 'cewolf', name: 'cewolf', version: '1.0') {
exclude group: 'crimson', module: 'crimson'
exclude group: 'gnujaxp', module: 'gnujaxp'
}
// Cglib
// http://mvnrepository.com/artifact/cglib/cglib-nodep
compile group: 'cglib', name: 'cglib-nodep', version: '3.2.2'
// Concurrent
// http://mvnrepository.com/artifact/concurrent/concurrent
compile group: 'concurrent', name: 'concurrent', version: '1.3.4'
// Dom4j
// http://mvnrepository.com/artifact/dom4j/dom4j
compile group: 'dom4j', name: 'dom4j', version: '1.6.1'
// Ehcache
// http://mvnrepository.com/artifact/net.sf.ehcache/ehcache-core
compile group: 'net.sf.ehcache', name: 'ehcache-core', version: '2.6.11'
// Fastinfoset
// http://mvnrepository.com/artifact/com.sun.xml.fastinfoset/FastInfoset
compile group: 'com.sun.xml.fastinfoset', name: 'FastInfoset', version: '1.2.13'
// Hazelcast
// http://mvnrepository.com/artifact/com.hazelcast/hazelcast-all
compile group: 'com.hazelcast', name: 'hazelcast-all', version: '3.6.3'
// JPA API
// https://mvnrepository.com/artifact/org.eclipse.persistence/javax.persistence
compile group: 'org.eclipse.persistence', name: 'javax.persistence', version: '2.2.0'
// Hibernate
runtimeClasspath group: 'org.hibernate', name: 'hibernate-core', version: '5.2.1.Final'
// EcliseLink
runtimeClasspath group: 'org.eclipse.persistence', name: 'org.eclipse.persistence.jpa', version: '2.7.0'
//// Jackson (An -all jar is in the lib directory, but Maven doesn't have one.)
//// http://mvnrepository.com/artifact/org.codehaus.jackson/jackson-core-asl
//compile group: 'org.codehaus.jackson', name: 'jackson-core-asl', version: '1.9.6'
//// http://mvnrepository.com/artifact/org.codehaus.jackson/jackson-mapper-asl
//compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.6'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.7.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.7.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.7.4'
// JAMA
// http://mvnrepository.com/artifact/gov.nist.math/jama
compile group: 'gov.nist.math', name: 'jama', version: '1.0.3'
// Java Extensions
// http://mvnrepository.com/artifact/javax.activation/activation
compile group: 'javax.activation', name: 'activation', version: '1.1.1'
// http://mvnrepository.com/artifact/javax.transaction/jta
compile group: 'javax.transaction', name: 'jta', version: '1.1'
// http://mvnrepository.com/artifact/javax.mail/javax.mail-api
compile group: 'javax.mail', name: 'javax.mail-api', version: '1.5.5'
// http://mvnrepository.com/artifact/javax.servlet.jsp/javax.servlet.jsp-api
providedCompile group: 'javax.servlet.jsp', name: 'javax.servlet.jsp-api', version: '2.3.1' // Not in the Cyclos lib directory, but required to be compiled.
// Javassist
// https://mvnrepository.com/artifact/org.javassist/javassist
compile group: 'org.javassist', name: 'javassist', version: '3.20.0-GA'
// JavaStat
compile name: 'javastat' // Sorry, I couldn't find JavaStat on Maven Central or jCenter. I grabbed the jar from Cyclos' lib directory.
// JFree
// http://mvnrepository.com/artifact/jfree/jcommon
compile group: 'org.jfree', name: 'jcommon', version: '1.0.23'
// http://mvnrepository.com/artifact/jfreechart/jfreechart
compile group: 'org.jfree', name: 'jfreechart', version: '1.0.19'
// JSci
// http://mvnrepository.com/artifact/net.sf.jsci/jsci
compile(group: 'net.sf.jsci', name: 'jsci', version: '1.2') {
exclude group: 'xerces', module: 'xercesImpl'
}
// JSON.simple
// http://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
// Jstl
// https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/javax.servlet.jsp.jstl-api
compile group: 'javax.servlet.jsp.jstl', name: 'javax.servlet.jsp.jstl-api', version: '1.2.1'
// JTidy
// http://mvnrepository.com/artifact/net.sf.jtidy/jtidy
compile group: 'net.sf.jtidy', name: 'jtidy', version: 'r938'
// Kaptcha
compile group: 'com.github.penggle', name: 'kaptcha', version: '2.3.2'
// Logkit
// http://mvnrepository.com/artifact/logkit/logkit
//compile group: 'logkit', name: 'logkit', version: '1.0.1'
compile group: 'org.apache.avalon.logkit', name: 'avalon-logkit', version: '2.2.1'
// MySQL Connector/J
// http://mvnrepository.com/artifact/mysql/mysql-connector-java
runtimeClasspath group: 'mysql', name: 'mysql-connector-java', version: '6.0.6'
// Mariadb Client
// http://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client
runtimeClasspath group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '1.4.5'
// https://mvnrepository.com/artifact/com.h2database/h2
runtimeClasspath group: 'com.h2database', name: 'h2', version: '1.4.196'
// Spring
// http://mvnrepository.com/artifact/org.springframework/spring-aop
compile group: 'org.springframework', name: 'spring-aop', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-beans
compile group: 'org.springframework', name: 'spring-beans', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-context-support
compile group: 'org.springframework', name: 'spring-context-support', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-context
compile group: 'org.springframework', name: 'spring-context', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-core
compile group: 'org.springframework', name: 'spring-core', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-expression
compile group: 'org.springframework', name: 'spring-expression', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-jdbc
compile group: 'org.springframework', name: 'spring-jdbc', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-orm
compile group: 'org.springframework', name: 'spring-orm', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-tx
compile group: 'org.springframework', name: 'spring-tx', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-web
compile group: 'org.springframework', name: 'spring-web', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework/spring-webmvc
compile group: 'org.springframework', name: 'spring-webmvc', version: '4.3.2.RELEASE'
// http://mvnrepository.com/artifact/org.springframework.security/spring-security-config
compile group: 'org.springframework.security', name: 'spring-security-config', version: '4.1.0.RELEASE'
// http://mvnrepository.com/artifact/org.springframework.security/spring-security-core
compile group: 'org.springframework.security', name: 'spring-security-core', version: '4.1.0.RELEASE'
// http://mvnrepository.com/artifact/org.springframework.security/spring-security-web
compile group: 'org.springframework.security', name: 'spring-security-web', version: '4.1.0.RELEASE'
compile group: 'org.imgscalr', name: 'imgscalr-lib', version: '4.2'
// SLF4J (I used 1.6 because Gradle wasn't happy with 1.5.6.)
// http://mvnrepository.com/artifact/org.slf4j/slf4j-api
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
// http://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.21'
// SSLExt
compile group: 'sslext', name: 'sslext', version: '1.2-0'
// Standard
// http://mvnrepository.com/artifact/org.apache.taglibs/taglibs-standard-impl
compile group: 'org.apache.taglibs', name: 'taglibs-standard-impl', version: '1.2.5'
// WSDL4J
// http://mvnrepository.com/artifact/wsdl4j/wsdl4j
compile group: 'wsdl4j', name: 'wsdl4j', version: '1.6.3'
tomcat "org.apache.tomcat.embed:tomcat-embed-core:8.0.36",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:8.0.36",
"org.apache.tomcat.embed:tomcat-embed-jasper:8.0.36"
}
war {
baseName 'cyclos'
}
task distZip(dependsOn: 'war', type: Zip) {
baseName war.baseName
from (zipTree(buildDir.toString() + '/libs/' + baseName + '-' + version + '.war')) {
into 'web'
}
}
task downloadTomcat(type: Download) {
//src 'http://www-us.apache.org/dist/tomcat/tomcat-7/v7.0.69/bin/apache-tomcat-7.0.69.zip'
src 'http://apache.mirrors.spacedump.net/tomcat/tomcat-8/v8.0.36/bin/apache-tomcat-8.0.36.zip'
dest new File(buildDir, 'tomcat.zip')
}
task standalone(dependsOn: ['downloadTomcat', 'war'], type: Zip) {
baseName distZip.baseName + '-standalone'
from (zipTree(downloadTomcat.dest)) {
into ''
excludes.addAll(['apache-tomcat-8.0.36/webapps/ROOT/**/*', 'apache-tomcat-8.0.36/webapps/ROOT/*'])
}
from (zipTree(buildDir.toString() + '/libs/' + war.baseName + '-' + version + '.war')) {
into 'apache-tomcat-8.0.36/webapps/ROOT'
}
from ('setenv.bat') {
into 'apache-tomcat-8.0.36/bin'
}
from ('setenv.sh') {
into 'apache-tomcat-8.0.36/bin'
}
}
build.dependsOn distZip
build.dependsOn standalone