aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2015-10-29 12:48:05 +0300
committerGravatar Vitaly Takmazov2015-10-29 12:48:05 +0300
commit5ef8eb20af30b8e3b50bb73fd0835a7f74627356 (patch)
tree2aa2bdff307a16041018cd0963109d313992b163 /build.gradle
parentbda0592fad358305f7aa2311b4b8cf122f0adf82 (diff)
jetty -> tomcat-embed
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle13
1 files changed, 11 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index 19b20f44..cf418d13 100644
--- a/build.gradle
+++ b/build.gradle
@@ -13,14 +13,16 @@ buildscript {
dependencies {
classpath 'com.eriwen:gradle-css-plugin:1.11.1'
classpath 'com.eriwen:gradle-js-plugin:1.12.1'
+ classpath 'com.bmuschko:gradle-tomcat-plugin:2.2.+'
}
}
apply plugin: 'war'
-apply plugin: 'jetty'
apply plugin: 'css'
+apply plugin: 'com.bmuschko.tomcat'
apply plugin: 'com.eriwen.gradle.js'
+
repositories {
mavenCentral()
}
@@ -48,6 +50,10 @@ dependencies {
compile xmpp
providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
runtime 'mysql:mysql-connector-java:5.1.37'
+ def tomcatVersion = '7.0.+'
+ 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}"
}
javascript.source {
@@ -94,4 +100,7 @@ assemble.dependsOn 'minifyJs'
compileJava.options.encoding = 'UTF-8'
-jettyRun.contextPath = ''
+tomcat {
+ httpPort = 8080
+ contextPath = '/'
+}