This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
189 lines (137 loc) · 7.03 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
// Apply the java-library plugin to add support for Java Library
apply plugin: 'java-library'
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
//TODO jcenter should be enough. Can remove dependency on mavenCentral
mavenLocal()
mavenCentral()
maven {
url "https://repo.spring.io/libs-release"
url "https://repo.spring.io/libs-milestone"
url "https://mvnrepository.com/artifact"
}
}
task myJavadocs(type: Javadoc) {
source = sourceSets.main.allJava
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-tomcat-plugin:2.4.2'
}
}
apply plugin: 'war'
apply plugin: 'eclipse-wtp'
apply plugin: 'com.bmuschko.tomcat'
// JDK version source compatibility
sourceCompatibility = 1.8
// project version
//version = '1.0'
// War file name
war.baseName = 'biodiv-api'
// Web directory, this overrides the default value "webapp"
//project.webAppDirName = 'WebContent'
dependencies {
def excludeStuff = {
exclude group: 'org.javassist', module:'javassist'
}
compile "javax.servlet:javax.servlet-api:3.0.1"
// https://mvnrepository.com/artifact/org.postgresql/postgresql
compile group: 'org.postgresql', name: 'postgresql', version: '42.2.1'
compile "org.hibernate:hibernate-core:5.2.10.Final" , excludeStuff
compile "org.hibernate:hibernate-validator:5.4.1.Final"
compile "org.hibernate:hibernate-spatial:5.2.10.Final"
compile group: 'org.hibernate', name: 'hibernate-c3p0', version: '5.2.10.Final'
compile "com.bedatadriven:jackson-datatype-jts:2.2"
// for connection pooling
runtime "org.apache.tomcat:tomcat-jdbc:8.5.0"
runtime "org.apache.tomcat.embed:tomcat-embed-logging-log4j:8.5.0"
runtime "org.slf4j:slf4j-api:1.7.10"
runtime "ch.qos.logback:logback-classic:1.2.3"
runtime "ch.qos.logback:logback-core:1.2.3"
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
// https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-server
//compile group: 'org.glassfish.jersey.core', name: 'jersey-server', version: '2.26-b09'
//compile group: 'org.glassfish.jersey.ext', name: 'jersey-spring4', version: '2.26-b09'
compile "org.glassfish.jersey.containers:jersey-container-servlet:2.25", excludeStuff
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version: '2.9.9'
// compile group: 'org.glassfish.jersey.media', name: 'jersey-media-json-jackson', version: '2.29.1'
compile group: 'org.glassfish.jersey.ext', name: 'jersey-bean-validation', version: '2.25'
compile "com.fasterxml.jackson.datatype:jackson-datatype-hibernate5:2.9.0"
compile group: 'org.reflections', name: 'reflections', version: '0.9.10'
//compile 'org.springframework.security:spring-security-web:5.0.0.M3'
//compile 'org.springframework.security:spring-security-config:5.0.0.M3'
//compile 'org.pac4j:spring-security-pac4j:3.0.0'
compile 'org.pac4j:jax-rs-pac4j:2.0.1'
compile 'org.pac4j:pac4j-http:2.1.0'
compile 'org.pac4j:pac4j-jwt:2.1.0'
compile 'org.pac4j:pac4j-oauth:2.1.0'
compile group: 'org.springframework.security', name: 'spring-security-crypto', version: '4.2.3.RELEASE'
compile group: 'javax.mail', name: 'mail', version: '1.5.0-b01'
compile group: 'org.antlr', name: 'stringtemplate', version: '4.0.2'
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.3'
// https://mvnrepository.com/artifact/org.glassfish.hk2/hk2
//compile group: 'org.glassfish.hk2', name: 'hk2', version: '2.4.0-b10'
compile group:'com.google.inject', name:'guice', version:'4.1.0'
compile group:'com.google.inject.extensions', name:'guice-servlet', version:'4.1.0'
compile group:'com.google.inject.extensions', name:'guice-persist', version:'4.1.0'
compile group:'com.google.inject.extensions', name:'guice-assistedinject', version:'4.1.0'
//compile group: 'org.glassfish.hk2', name: 'guice-bridge', version: '2.2.0-b14'
// https://mvnrepository.com/artifact/org.glassfish.hk2/guice-bridge
compile group: 'org.glassfish.hk2', name: 'guice-bridge', version: '2.5.0-b30'
// https://mvnrepository.com/artifact/org.json/json
compile group: 'org.json', name: 'json', version: '20160810'
compile 'org.elasticsearch.client:elasticsearch-rest-high-level-client:6.0.1'
providedCompile "javax.servlet:javax.servlet-api:4.0.0"
compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.8'
compile group: 'org.yaml', name: 'snakeyaml', version: '1.18'
// https://mvnrepository.com/artifact/com.google.guava/guava
compile group: 'com.google.guava', name: 'guava', version: 'r05'
compile group: 'org.apache.commons', name: 'commons-configuration2', version: '2.2'
compile group: 'org.quartz-scheduler', name: 'quartz', version: '2.3.0'
compile group: 'org.apache.commons', name: 'commons-email', version: '1.5'
compile group: 'org.freemarker', name: 'freemarker', version: '2.3.27-incubating'
compile group: 'com.zaxxer', name: 'HikariCP', version: '3.0.0'
compile group: 'com.github.debop', name: 'hibernate-redis', version: '2.3.2'
//compile group: 'org.redisson', name: 'redisson', version: '3.6.4'
compile group: 'de.ruedigermoeller', name: 'fst', version: '2.57'
compile group: 'org.xerial.snappy', name: 'snappy-java', version: '1.1.7.1'
// https://mvnrepository.com/artifact/org.globalnames/gnparser
compile group: 'org.globalnames', name: 'gnparser_2.11', version: '0.4.4'
// https://mvnrepository.com/artifact/org.springframework.security/spring-security-acl
compile group: 'org.springframework.security', name: 'spring-security-acl', version: '5.0.6.RELEASE'
// https://mvnrepository.com/artifact/org.springframework.security/spring-security-config
compile group: 'org.springframework.security', name: 'spring-security-config', version: '5.0.6.RELEASE'
// https://mvnrepository.com/artifact/org.springframework/spring-context-support
compile group: 'org.springframework', name: 'spring-context-support', version: '5.0.6.RELEASE'
// https://mvnrepository.com/artifact/net.sf.ehcache/ehcache-core
compile group: 'net.sf.ehcache', name: 'ehcache-core', version: '2.6.11'
}
dependencies {
// def tomcatVersion = '8.0.42'
// tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
// "org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}",
// "org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}"
def tomcatVersion = '8.5.27'
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:8.5.2",
"org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}"
}
tomcat {
httpProtocol = 'org.apache.coyote.http11.Http11Nio2Protocol'
ajpProtocol = 'org.apache.coyote.ajp.AjpNio2Protocol'
}
tomcat {
httpPort = 8090
httpsPort = 8444
ajpPort = 8010
stopPort = 8082
//enableSSL = true
contextPath = 'biodiv-api'
}