aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
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 = '/'
+}