All Downloads are FREE. Search and download functionalities are using the official Maven repository.

archetype-resources.build.gradle Maven / Gradle / Ivy

Go to download

A simple starter application using Cloud Endpoints Frameworks with Google App Engine Standard

The newest version!
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )

#**
Copyright 2017 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*#

buildscript {    // Configuration for building
  repositories {
    mavenCentral()
    jcenter()    // Bintray's repository - a fast Maven Central mirror & more
  }
  dependencies {
    classpath 'com.google.cloud.tools:appengine-gradle-plugin:${gradle-appengine-plugin}'
    classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:${gradle-endpoints-plugin}'
  }
}

repositories {   // repositories for Jar's you access in your code
  mavenCentral()
  jcenter()
}

apply plugin: 'java'                              // standard Java tasks
apply plugin: 'war'                               // standard Web Archive plugin
apply plugin: 'com.google.cloud.tools.appengine'  // App Engine tasks
apply plugin: 'com.google.cloud.tools.endpoints-framework-server'

dependencies {
  providedCompile group: 'javax.servlet', name: 'servlet-api', version:'2.5'
  compile 'jstl:jstl:1.2'
  compile group: 'javax.inject', name: 'javax.inject', version: '1'
  compile group: 'com.google.appengine', name: 'appengine-api-1.0-sdk', version: '+'

  // Uncomment to use Endpoints Frameworks v1.0 and comment the v2.0 section
  // compile group: 'com.google.appengine', name: 'appengine-endpoints', version: '+'
  // End of Endpoints Frameworks v1.0

  // Endpoints Frameworks v2.0
  compile group: 'com.google.endpoints', name: 'endpoints-framework', version: '${gradle-endpoints-frameworks}'
  // End of Endpoints Frameworks v2.0

}

appengine {  // App Engine tasks configuration
  run {      // local (dev_appserver) configuration (standard environments only)

  }

  deploy {   // deploy configuration

  }
}

endpointsServer {
  // Endpoints Framework Plugin server-side configuration
  hostname = "${google-cloud-project}.appspot.com"
}

group   = '${groupId}' // Generated output GroupId
version = '1'          // Version in generated output

sourceCompatibility = 1.7     // App Engine Standard uses Java 7
targetCompatibility = 1.7     // App Engine Standard uses Java 7




© 2015 - 2025 Weber Informatics LLC | Privacy Policy