For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

ExternalDependency

Represents an external artifact dependency.

Since

0.9.2

Inheritors

Functions

Link copied to clipboard
abstract fun getFile(): File
Returns the file for this dependency.
Link copied to clipboard
@Nullable
abstract fun getGradleModuleVersion(): @Nullable GradleModuleVersion
Returns the Gradle module information for this dependency, or null if the dependency does not originate from a remote repository.
Link copied to clipboard
@Nullable
abstract fun getJavadoc(): @Nullable File
Returns the Javadoc directory or archive for this dependency, or null if no Javadoc is available.
Link copied to clipboard
@Nullable
abstract fun getSource(): @Nullable File
Returns the source directory or archive for this dependency, or null if no source is available.
Link copied to clipboard
abstract fun isExported(): Boolean
Marks this dependency as exported.