Home > Mobile >  Are Gradle Buildscript Classpath Dependencies Shipped with Android App?
Are Gradle Buildscript Classpath Dependencies Shipped with Android App?

Time:02-04

Gradle has multiple dependency configurations. I know that compile, implementation, api dependencies are shipped with the library/app; while compileOnly, testCompile, and testImplementation dependencies are not. What about the classpath dependencies in the top-level buildscript, are those dependencies included in the AAR/APK?

For E.g. Dokka (https://github.com/Kotlin/dokka) library, this only needs to be added as buildscript.classpath dependency, will dokka be included in the library aar file?

I tried searching in the Gradle docs but could not find an answer to my question. I am ssuming that it should not be shipped with the app/library.

CodePudding user response:

No, Gradle buildscript classpath dependencies are not shipped with an Android app. These dependencies are used during the build process to resolve and compile the necessary libraries, plugins, and build tools needed to build the app. They are not included in the final APK file that is deployed to the user's device.

  • Related