title: Deploy Spring boot gradle app in Google App Engine
body: <p>I have searched for the <strong>tutorial</strong> to deploy <strong>Spring boot application</strong> using <strong>Gradle</strong>. I failed to find any resource that explains the process to do so.</p>
  
  <p>Can anyone guide me the process?</p>
  
  <p>My project works like a charm when its run locally on my machine. But I would like to deploy on the Google app engine's Flexible Java Environment.</p>
  
  <blockquote>
    <p>Thanks, in advance. </p>
  </blockquote>
  
  <p>My build.gradle looks like this</p>
  
  <pre><code>buildscript {
      ext {
          springBootVersion = '2.0.4.RELEASE'
          jwtVersion = '3.4.0'
          appEngineVersion = '1.9.56'
          appEngineGradleToolsVersion = '1.3.4'
      }
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
      }
  }
  
  apply plugin: 'java'
  apply plugin: 'eclipse'
  apply plugin: 'idea'
  apply plugin: 'org.springframework.boot'
  apply plugin: 'io.spring.dependency-management'
  
  group = 'com.example'
  version = '0.0.1'
  sourceCompatibility = 1.8
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile('org.springframework.boot:spring-boot-starter-actuator')
      compile('org.springframework.boot:spring-boot-starter-web')
      compile('org.springframework.boot:spring-boot-starter-thymeleaf')
      compile("org.springframework.boot:spring-boot-starter-security")
  
      // JPA Data (We are going to use Repositories, Entities, Hibernate, etc...)
      compile 'org.springframework.boot:spring-boot-starter-data-jpa'
  
      // Use MySQL Connector-J
      compile 'mysql:mysql-connector-java'
  
      implementation "com.auth0:java-jwt:${jwtVersion}"
  
      runtime('org.springframework.boot:spring-boot-devtools')
      testCompile('org.springframework.boot:spring-boot-starter-test')
  }
  </code></pre>