1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15+ // [START buildscript]
1516buildscript { // Configuration for building
1617 repositories {
1718 mavenCentral()
1819 jcenter() // Bintray's repository - a fast Maven Central mirror & more
1920 }
2021 dependencies {
22+ // App Engine Gradle plugin
2123 classpath ' com.google.cloud.tools:appengine-gradle-plugin:1.1.0'
24+
25+ // Endpoints Frameworks Gradle plugin
2226 classpath ' com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.0-beta6'
2327 }
2428}
29+ // [END buildscript]
2530
2631repositories { // repositories for Jar's you access in your code
2732 mavenCentral()
@@ -30,8 +35,14 @@ repositories { // repositories for Jar's you access in your code
3035
3136apply plugin : ' java' // standard Java tasks
3237apply plugin : ' war' // standard Web Archive plugin
38+
39+ // [START apply_appengine]
3340apply plugin : ' com.google.cloud.tools.appengine' // App Engine tasks
41+ // [END apply_appengine]
42+
43+ // [START apply_endpoints-framework-server]
3444apply plugin : ' com.google.cloud.tools.endpoints-framework-server'
45+ // [END apply_endpoints-framework-server]
3546
3647dependencies {
3748 providedCompile group : ' javax.servlet' , name : ' servlet-api' , version :' 2.5'
@@ -43,7 +54,9 @@ dependencies {
4354 // End of Endpoints Frameworks v1.0
4455
4556 // Endpoints Frameworks v2.0
57+ // [START endpoints-tools]
4658 compile group : ' com.google.endpoints' , name : ' endpoints-framework-tools' , version : ' 2.0.4'
59+ // [END endpoints-tools]
4760 // End of Endpoints Frameworks v2.0
4861}
4962
@@ -58,6 +71,7 @@ appengine { // App Engine tasks configuration
5871 }
5972}
6073
74+
6175group = ' com.example.helloendpoints' // Generated output GroupId
6276version = ' 1' // Version in generated output
6377
0 commit comments