Vipul Asri
Vipul Asri

Reputation: 9223

What's the use of classpath in Gradle buildscript

What is the use of including classpath in dependencies section of buildscript build.gradle(Project). Example :

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

classpath 'com.android.tools.build:gradle:1.5.0' what is its purpose / what does it do?

Upvotes: 3

Views: 2330

Answers (1)

Henry
Henry

Reputation: 43738

This is the classpath used by Gradle itself. If you want to extend your build logic with non-standard plugins or other supporting classes they must be found in this classpath.

The mentioned dependency com.android.tools.build:gradle:1.5.0 contains the plugin doing the android specific build stuff.

Upvotes: 3

Related Questions