From 82b32e4549a380cafa0df366dd509f4c416654de Mon Sep 17 00:00:00 2001 From: Wilhelm Haas Date: Wed, 29 Nov 2017 16:04:45 +0100 Subject: [PATCH 1/2] gradle: adds additional gradle examples --- pages/common/gradle.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pages/common/gradle.md b/pages/common/gradle.md index 11fa511f6..e846a12aa 100644 --- a/pages/common/gradle.md +++ b/pages/common/gradle.md @@ -1,11 +1,19 @@ # gradle -> Gradle is the official build system for Android Studio. +> Gradle is an advanced open source build automation system. - Compile a package: `gradle build` +- Exclude test task: + +`gradle build -x test` + +- Run in offline mode: + +`gradle build --offline` + - Clear the build folder: `gradle clean` @@ -13,3 +21,7 @@ - Compile and Release package: `gradle assembleRelease` + +- Create Gradle wrapper: + +`gradle wrapper --gradle-version {{gradle_version}}` From e1c6d7c4a617b44c71e21463b987b03eb4254610 Mon Sep 17 00:00:00 2001 From: Wilhelm Haas Date: Mon, 11 Dec 2017 21:13:19 +0100 Subject: [PATCH 2/2] integrates feedback of the reviewer --- pages/common/gradle.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pages/common/gradle.md b/pages/common/gradle.md index e846a12aa..9dc466d47 100644 --- a/pages/common/gradle.md +++ b/pages/common/gradle.md @@ -8,9 +8,9 @@ - Exclude test task: -`gradle build -x test` +`gradle build -x {{test}}` -- Run in offline mode: +- Run in offline mode to prevent gradle from accessing the network during builds: `gradle build --offline` @@ -21,7 +21,3 @@ - Compile and Release package: `gradle assembleRelease` - -- Create Gradle wrapper: - -`gradle wrapper --gradle-version {{gradle_version}}`