Gradle java web app doesn't start on heroku
<p>When I deploy my app locally with </p>

<pre><code>heroku local
</code></pre>

<p>It starts up, but when I'm pushing it to remote, heroku toolbelt doesn't show any error, but here is what I get from logs:</p>

<pre><code>2016-05-15T16:00:13.504799+00:00 heroku[slug-compiler]: Slug  compilation started
2016-05-15T16:00:13.504808+00:00 heroku[slug-compiler]: Slug compilation finished
2016-05-15T16:00:19.131289+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=damp-ocean-4271.herokuapp.com request_id=d0d12240-3923-467f-bf21-84bb5bcd79ca fwd="46.53.183.156" dyno= connect= service= status=503 bytes=
</code></pre>

<p>I was using this guide <a href="https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku" rel="nofollow">https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku</a></p>

<p><strong>Procfile</strong></p>

<pre><code>web: cd build ; java -jar ../build/server/webapp-runner-*.jar --expand-war --port $PORT libs/*.war
</code></pre>

<p><strong>build.gradle</strong></p>

<pre><code>apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'maven'

group = 'com.ily'
version = '1.1-SNAPSHOT'

description = """web"""

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
  mavenLocal()
  maven { url "http://repo1.maven.org/maven2" }
  maven { url "http://repository.jboss.org/nexus/content/groups/public/" }
}
dependencies {
  compile group: 'org.mybatis', name: 'mybatis', version:'3.3.0'
  compile group: 'org.mybatis', name: 'mybatis-spring', version:'1.2.3'
  compile group: 'org.springframework', name: 'spring-jdbc',  version:'4.2.2.RELEASE'
  compile group: 'javax.servlet', name: 'javax.servlet-api', version:'3.1.0'
  compile group: 'javax.servlet', name: 'jstl', version:'1.2'
  compile group: 'com.mashape.unirest', name: 'unirest-java', version:'1.4.5'
  compile group: 'org.postgresql', name: 'postgresql', version:'9.4-1201-jdbc4'
  compile group: 'org.springframework', name: 'spring-core', version:'4.2.2.RELEASE'
  compile group: 'org.springframework', name: 'spring-test', version:'4.2.2.RELEASE'
  compile group: 'org.springframework', name: 'spring-web', version:'4.2.2.RELEASE'
  compile group: 'org.springframework', name: 'spring-webmvc', version:'4.2.2.RELEASE'
  compile group: 'org.bitbucket.b_c', name: 'jose4j', version:'0.4.4'
  compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version:'2.6.2'
  compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.7'
  compile group: 'org.slf4j', name: 'slf4j-log4j12', version:'1.7.7'
  compile group: 'org.slf4j', name: 'jcl-over-slf4j', version:'1.7.7'
  compile group: 'log4j', name: 'log4j', version:'1.2.17'
  compile group: 'org.eclipse.jetty', name: 'jetty-servlet',    version:'9.2.10.v20150310'
  compile 'com.github.jsimone:webapp-runner:8.0.30.2'
  testCompile group: 'org.testng', name: 'testng', version:'6.9.6'
}

task stage() {
  dependsOn clean, war
}
tasks.stage.doLast() {
  delete fileTree(dir: "build/distributions")
  delete fileTree(dir: "build/assetCompile")
  delete fileTree(dir: "build/distributions")
  delete fileTree(dir: "build/libs", exclude: "*.war")
}
war.mustRunAfter clean

task copyToLib(type: Copy) {
  into "$buildDir/server"
  from(configurations.compile) {
    include "webapp-runner*"
  }
}

stage.dependsOn(copyToLib)
</code></pre>