-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (36 loc) · 1.06 KB
/
build.gradle
File metadata and controls
49 lines (36 loc) · 1.06 KB
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.bmuschko:gradle-tomcat-plugin:2.5"
}
}
plugins {
id "java"
}
apply plugin: "com.bmuschko.tomcat"
group "io.servlet.embedded"
repositories {
mavenCentral()
}
dependencies {
def tomcatVersion = "10.1.9"
tomcat("org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}")
tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}")
providedCompile("javax.servlet:javax.servlet-api:${servletApiVersion}")
providedCompile("javax.servlet.jsp:jsp-api:2.2")
implementation("org.slf4j:slf4j-api:${slf4jVersion}")
implementation("org.slf4j:slf4j-simple:${slf4jVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tomcat {
httpPort = 8080
contextPath = "/"
httpProtocol = "org.apache.coyote.http11.Http11Nio2Protocol"
ajpProtocol = "org.apache.coyote.ajp.AjpNio2Protocol"
}
test {
useJUnitPlatform()
}