From 5ef8eb20af30b8e3b50bb73fd0835a7f74627356 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 29 Oct 2015 12:48:05 +0300 Subject: jetty -> tomcat-embed --- build.gradle | 13 +++++++++++-- 1 file 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 = '/' +} -- cgit v1.2.3