Skip to content

Commit 252139d

Browse files
author
Frank Natividad
committed
Adding region tags to build.gradle
1 parent e373132 commit 252139d

File tree

1 file changed

+14
-0
lines changed
  • appengine/endpoints-frameworks-v2/migration-example

1 file changed

+14
-0
lines changed

appengine/endpoints-frameworks-v2/migration-example/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,21 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// [START buildscript]
1516
buildscript { // 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

2631
repositories { // 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

3136
apply plugin: 'java' // standard Java tasks
3237
apply plugin: 'war' // standard Web Archive plugin
38+
39+
// [START apply_appengine]
3340
apply plugin: 'com.google.cloud.tools.appengine' // App Engine tasks
41+
// [END apply_appengine]
42+
43+
// [START apply_endpoints-framework-server]
3444
apply plugin: 'com.google.cloud.tools.endpoints-framework-server'
45+
// [END apply_endpoints-framework-server]
3546

3647
dependencies {
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+
6175
group = 'com.example.helloendpoints' // Generated output GroupId
6276
version = '1' // Version in generated output
6377

0 commit comments

Comments
 (0)