diff options
Diffstat (limited to 'docs/html/tools/building')
| -rw-r--r-- | docs/html/tools/building/configuring-gradle.jd | 4 | ||||
| -rw-r--r-- | docs/html/tools/building/plugin-for-gradle.jd | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/docs/html/tools/building/configuring-gradle.jd b/docs/html/tools/building/configuring-gradle.jd index 2e15473..5af2096 100644 --- a/docs/html/tools/building/configuring-gradle.jd +++ b/docs/html/tools/building/configuring-gradle.jd @@ -44,7 +44,7 @@ at the module level. For example, the build file for the app module in the <code>BuildSystemExample</code> project looks like this:</p> <pre> -apply plugin: 'android' +apply plugin: 'com.android.application' android { compileSdkVersion 19 @@ -72,7 +72,7 @@ dependencies { } </pre> -<p><code>apply plugin: 'android'</code> applies the Android plugin for Gradle to this build. +<p><code>apply plugin: 'com.android.application'</code> applies the Android plugin for Gradle to this build. This adds Android-specific build tasks to the top-level build tasks and makes the <code>android {...}</code> element available to specify Android-specific build options.</p> diff --git a/docs/html/tools/building/plugin-for-gradle.jd b/docs/html/tools/building/plugin-for-gradle.jd index b479ed8..77cbfda 100644 --- a/docs/html/tools/building/plugin-for-gradle.jd +++ b/docs/html/tools/building/plugin-for-gradle.jd @@ -23,7 +23,7 @@ Building and Running from Android Studio</a></li> <h2>Download</h2> <div class="download-box"> <a href="{@docRoot}shareables/sdk-tools/android-gradle-plugin-dsl.zip" - class="button">Plugin Command Reference</a> + class="button">Plugin Language Reference</a> <p class="filename">android-gradle-plugin-dsl.zip</p> </div> @@ -117,7 +117,7 @@ also has its own build.gradle file for build settings specific to that module.</ <em>repositories</em> and <em>dependencies</em>. This allows different projects to use different Gradle versions. Supported repositories include JCenter, Maven Central, or Ivy. This example declares that the build script uses the JCenter repository and a classpath dependency artifact -that contains the Android plugin for Gradle version 0.14.4. +that contains the Android plugin for Gradle version 1.0.1. </p> <p> <pre> @@ -126,7 +126,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:0.14.4' + classpath 'com.android.tools.build:gradle:1.0.1' // NOTE: Do not place your application dependencies here: they belong // in the individual module build.gradle files @@ -320,6 +320,9 @@ logic inside Gradle build files instead.</p> <p>You can run the shell scripts to build your project from the command line on your development machine and on other machines where Android Studio is not installed.</p> +<p class="caution"><strong>Caution:</strong> When you create a project, only use the Gradle wrapper +scripts and JAR from a trusted source, such as those generated by Android Studio. /p> + <h2 id="buildVariants"> Build variants</h2> |
