Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create Google App Engine Project with Gradle

A I'm new to Google App Engine and even I have Spring tool suite with gradle plugin installed, I facing difficulty . I want to know what the process ,how to implement ,if any sample basic project to implement can anybody help me .Even I have Goggled but getting get the doc and but when I'm trying to implement getting errors,unable to create a sample project any suggestion with code is appreciated

Thanks in advance....

like image 889
vinay Maneti Avatar asked Nov 21 '13 09:11

vinay Maneti


2 Answers

Here is my setup for the appengine guestbook sample

https://developers.google.com/appengine/docs/java/gettingstarted/introduction

build.gradle

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'com.google.appengine:gradle-appengine-plugin:1.9.4'
    }
}

apply plugin: 'war'
apply plugin: 'appengine'

sourceCompatibility = 1.7
version = '1.0'

repositories {
    mavenCentral()
}

dependencies {
    providedCompile 'javax.servlet:servlet-api:2.5'
    compile 'com.google.appengine:appengine-api-1.0-sdk:1.9.4'
    testCompile group: 'junit', name: 'junit', version: '4.11'
}


appengine {
    httpPort = 8085

    appcfg {
        email = '[email protected]'
        passIn = true

        logs {
            severity = 1
            outputFile = file('mylogs.txt')
        }

        app {
            id = 'guestbook'
        }
    }
}

gradle.properties (in project root)

systemProp.appengine.sdk.root = /Users/<me>/Documents/appengine-java-sdk-1.9.4

Create a webapp directory in your project's "src/main" folder and copy the files from the sample webapp directory there.

like image 71
vharron Avatar answered Sep 28 '22 14:09

vharron


I'd check out the docs for Google's offical Gradle AppEngine plugin, which also has a small example. SpringSource Tool Suite is irrelevant here. If you hit any problems, post a concrete question that explains the problem in detail, along with all output you get.

like image 24
Peter Niederwieser Avatar answered Sep 28 '22 16:09

Peter Niederwieser