api / org.gradle.tooling.model / ExternalDependency

ExternalDependency

interface ExternalDependency : Dependency

Represents an external artifact dependency.

Functions

getFile

abstract fun getFile(): File

Returns the file for this dependency.

getGradleModuleVersion

abstract fun getGradleModuleVersion(): GradleModuleVersion

Returns the Gradle module information for this dependency, or null if the dependency does not originate from a remote repository.

getJavadoc

abstract fun getJavadoc(): File

Returns the Javadoc directory or archive for this dependency, or null if no Javadoc is available.

getSource

abstract fun getSource(): File

Returns the source directory or archive for this dependency, or null if no source is available.

isExported

abstract fun isExported(): Boolean

Marks this dependency as exported.

Inheritors

EclipseExternalDependency

interface EclipseExternalDependency : ExternalDependency, EclipseClasspathEntry

Represents an Eclipse-specific external artifact dependency.

IdeaSingleEntryLibraryDependency

interface IdeaSingleEntryLibraryDependency : IdeaDependency, ExternalDependency

"Single-Entry Module Library" as IDEA calls it. For example a single Jar file with sources Jar.