Package org.gradle.api.artifacts
Schnittstelle ProjectDependency
- Alle Superschnittstellen:
Buildable,Dependency,HasAttributes,HasConfigurableAttributes<ModuleDependency>,ModuleDependency,SelfResolvingDependency
A ProjectDependency is a Dependency on another project in the current project hierarchy.
-
Feldübersicht
Von Schnittstelle geerbte Felder org.gradle.api.artifacts.Dependency
ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcopy()Creates and returns a new dependency with the property values of this one.Veraltet.Veraltet.This method will be removed in Gradle 9.0.getPath()Get the path to the project that this dependency refers to relative to its owning build.resolve()Veraltet.This class will no longer implementSelfResolvingDependencyin Gradle 9.0resolve(boolean transitive) Veraltet.This class will no longer implementSelfResolvingDependencyin Gradle 9.0Von Schnittstelle geerbte Methoden org.gradle.api.artifacts.Dependency
because, contentEquals, getGroup, getName, getReason, getVersionVon Schnittstelle geerbte Methoden org.gradle.api.artifacts.ModuleDependency
addArtifact, artifact, artifact, attributes, capabilities, doNotEndorseStrictVersions, endorseStrictVersions, exclude, getArtifacts, getAttributes, getCapabilitySelectors, getExcludeRules, getRequestedCapabilities, getTargetConfiguration, isEndorsingStrictVersions, isTransitive, setTargetConfiguration, setTransitive
-
Methodendetails
-
getPath
String getPath()Get the path to the project that this dependency refers to relative to its owning build.- Seit:
- 8.11
- Siehe auch:
-
getDependencyProject
Veraltet.This method will be removed in Gradle 9.0. Accessing the mutable state of other projects should be avoided.Returns the project associated with this project dependency. -
copy
ProjectDependency copy()Creates and returns a new dependency with the property values of this one.- Angegeben von:
copyin SchnittstelleDependency- Angegeben von:
copyin SchnittstelleModuleDependency- Gibt zurück:
- The copy. Never returns null.
-
getBuildDependencies
Veraltet.This class will no longer implementSelfResolvingDependencyin Gradle 9.0Returns a dependency which contains the tasks which build this artifact. AllBuildableimplementations must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this buildable.- Angegeben von:
getBuildDependenciesin SchnittstelleBuildable- Gibt zurück:
- The dependency. Never returns null. Returns an empty dependency when this artifact is not built by any tasks.
-
resolve
Veraltet.This class will no longer implementSelfResolvingDependencyin Gradle 9.0Resolves this dependency. AProjectDependencyis resolved with transitive equals true by this method.- Angegeben von:
resolvein SchnittstelleSelfResolvingDependency- Gibt zurück:
- The files which make up this dependency.
- Siehe auch:
-
resolve
Veraltet.This class will no longer implementSelfResolvingDependencyin Gradle 9.0Resolves this dependency by specifying the transitive mode. This mode has only an effect if the self resolved dependency is of typeProjectDependency. In this case, if transitive isfalse, only the self resolving dependencies of the project configuration which are no project dependencies are resolved. If transitive is set to true, other project dependencies belonging to the configuration of the resolved project dependency are resolved recursively.- Angegeben von:
resolvein SchnittstelleSelfResolvingDependency- Parameter:
transitive- Whether to resolve transitively. Has only an effect on aProjectDependency- Gibt zurück:
- The files which make up this dependency.
-
SelfResolvingDependencyin Gradle 9.0