-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (45 loc) · 1.73 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.bmuschko:gradle-tomcat-plugin:2.5'
}
}
plugins {
id 'war'
id 'com.bmuschko.tomcat' version '2.5'
}
group 'net.therap'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
implementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.26'
implementation group: 'org.hibernate', name: 'hibernate-entitymanager', version: '3.6.10.Final'
implementation group: 'org.hibernate', name: 'hibernate-validator', version: '4.1.0.Final'
implementation group: 'javax.validation', name: 'validation-api', version: '2.0.1.Final'
compileOnly group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1'
implementation group: 'javax.servlet', name: 'jstl', version: '1.2'
implementation group: 'org.springframework', name: 'spring-webmvc', version: '3.2.17.RELEASE'
implementation group: 'org.springframework', name: 'spring-orm', version: '3.2.17.RELEASE'
compileOnly group: 'javax', name: 'javaee-api', version: '7.0'
def tomcatVersion = '9.0.1'
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:9.0.0.M6",
"org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}"
}
tomcat {
httpProtocol = 'org.apache.coyote.http11.Http11Nio2Protocol'
ajpProtocol = 'org.apache.coyote.ajp.AjpNio2Protocol'
}
tomcat {
contextPath = '/'
httpPort = 8080
stopPort = 8191
}