Ilya
Ilya

Reputation: 41

Can't run embedded Tomcat with Gradle

I am trying to run embedded Tomcat with gradle, everything looks good, but when i am executing tomcatRunWar task this task running into console and nothing is going on.

buildscript {
repositories {
    jcenter()
}

dependencies {
    classpath 'com.bmuschko:gradle-tomcat-plugin:2.2.5'
}
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'com.bmuschko.tomcat'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
def tomcatVersion = '7.0.59'
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}"
}

dependencies {Other dependencies}

Running all time and never ends

If deploy generated war into Tomcat manually It works great

Upvotes: 1

Views: 1155

Answers (0)

Related Questions