From 59a5a48135033832e52cb48c64ce81e5dc795fa4 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 24 Jun 2016 15:27:18 +0300 Subject: gradle application --- build.gradle | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/build.gradle b/build.gradle index 63ba360a..0eb80dd4 100644 --- a/build.gradle +++ b/build.gradle @@ -5,21 +5,10 @@ subprojects { } } -buildscript { - repositories { - mavenCentral() - jcenter() - } - dependencies { - classpath 'com.bmuschko:gradle-tomcat-plugin:2.2.+' - classpath 'com.tkruse.gradle:gradle-groovysh-plugin:1.0.7' - } -} - apply plugin: 'java' -apply plugin: 'war' -apply plugin: 'com.bmuschko.tomcat' -apply plugin: 'com.github.tkruse.groovysh' +apply plugin: 'application' + +mainClassName = "com.juick.jabber.ws.Main" repositories { mavenCentral() @@ -52,20 +41,9 @@ dependencies { compile server compile xmpp compile json - compile "org.springframework:spring-jdbc:4.2.4.RELEASE" - providedCompile 'javax.servlet:javax.servlet-api:3.1.0' - providedCompile 'javax.websocket:javax.websocket-api:1.0' - 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}" + compile "org.springframework:spring-jdbc:4.3.0.RELEASE" testCompile 'junit:junit:4.12' runtime 'mysql:mysql-connector-java:5.1.37' } compileJava.options.encoding = 'UTF-8' - -tomcat { - httpPort = 8080 - contextPath = '/' -} -- cgit v1.2.3