Serverless tip #1 — Deploy a standalone JVM web app with Gradle and the App Engine plugin
Requirements:
- an existing Google Cloud Platform account and project
- a Java or alternative language web application
- a Gradle build that creates a standalone executable JAR file
In youd build.gradle file, add the App Engine gradle plugin to your buildscript dependencies:
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.google.cloud.tools:appengine-gradle-plugin:2.+'
}
}
Apply the plugin, to make use of it:
apply plugin: "com.google.cloud.tools.appengine-appyaml"
Then you can configure the appengine task to point at the standalone executable JAR:

