What is the default dependency scope in Gradle on Android?

In Gradle in Android Studio, I noticed that providing dependency scope is optional. For example:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
            'org.hamcrest:hamcrest-core:1.3'
            'org.hamcrest:hamcrest-library:1.3'
}

Note that the last two libraries lack a compilation area. I left it empty and I could still synchronize gradle. What is the default area if nothing is specified here?

+4
source share
1 answer

- . gradle, (: java Android). , . , compile , . , , :

  • gradle,
  • ( ), , , , .

gradle

+2

Source: https://habr.com/ru/post/1627595/


All Articles