12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // [START buildscript]
15
16
buildscript { // Configuration for building
16
17
repositories {
17
18
mavenCentral()
18
19
jcenter() // Bintray's repository - a fast Maven Central mirror & more
19
20
}
20
21
dependencies {
22
+ // App Engine Gradle plugin
21
23
classpath ' com.google.cloud.tools:appengine-gradle-plugin:1.1.0'
24
+
25
+ // Endpoints Frameworks Gradle plugin
22
26
classpath ' com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.0-beta6'
23
27
}
24
28
}
29
+ // [END buildscript]
25
30
26
31
repositories { // repositories for Jar's you access in your code
27
32
mavenCentral()
@@ -30,8 +35,14 @@ repositories { // repositories for Jar's you access in your code
30
35
31
36
apply plugin : ' java' // standard Java tasks
32
37
apply plugin : ' war' // standard Web Archive plugin
38
+
39
+ // [START apply_appengine]
33
40
apply plugin : ' com.google.cloud.tools.appengine' // App Engine tasks
41
+ // [END apply_appengine]
42
+
43
+ // [START apply_endpoints-framework-server]
34
44
apply plugin : ' com.google.cloud.tools.endpoints-framework-server'
45
+ // [END apply_endpoints-framework-server]
35
46
36
47
dependencies {
37
48
providedCompile group : ' javax.servlet' , name : ' servlet-api' , version :' 2.5'
@@ -43,7 +54,9 @@ dependencies {
43
54
// End of Endpoints Frameworks v1.0
44
55
45
56
// Endpoints Frameworks v2.0
57
+ // [START endpoints-tools]
46
58
compile group : ' com.google.endpoints' , name : ' endpoints-framework-tools' , version : ' 2.0.4'
59
+ // [END endpoints-tools]
47
60
// End of Endpoints Frameworks v2.0
48
61
}
49
62
@@ -58,6 +71,7 @@ appengine { // App Engine tasks configuration
58
71
}
59
72
}
60
73
74
+
61
75
group = ' com.example.helloendpoints' // Generated output GroupId
62
76
version = ' 1' // Version in generated output
63
77
0 commit comments