Class SimpleModDependency
java.lang.Object
net.fabricmc.loom.configuration.mods.dependency.ModDependency
net.fabricmc.loom.configuration.mods.dependency.SimpleModDependency
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleModDependency(ArtifactRef artifact, ArtifactMetadata metadata, ModDependencyOptions options, org.gradle.api.NamedDomainObjectProvider<? extends org.gradle.api.artifacts.Configuration> targetConfig, org.gradle.api.Project project) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToProject(org.gradle.api.Project project) Apply the dependency to the project.voidcopyToCache(org.gradle.api.Project project, Path path, @Nullable String variant) Write an artifact to the local cache.booleanisCacheInvalid(org.gradle.api.Project project, @Nullable String variant) Returns true when the cache is invalid.Methods inherited from class net.fabricmc.loom.configuration.mods.dependency.ModDependency
createMavenHelper, getGroup, getInputArtifact, getInputFile, getMetadata, getName, getOptions, getVersion, getWorkingFile, toString
-
Constructor Details
-
SimpleModDependency
public SimpleModDependency(ArtifactRef artifact, ArtifactMetadata metadata, ModDependencyOptions options, org.gradle.api.NamedDomainObjectProvider<? extends org.gradle.api.artifacts.Configuration> targetConfig, org.gradle.api.Project project)
-
-
Method Details
-
isCacheInvalid
Description copied from class:ModDependencyReturns true when the cache is invalid.- Specified by:
isCacheInvalidin classModDependency
-
copyToCache
public void copyToCache(org.gradle.api.Project project, Path path, @Nullable String variant) throws IOException Description copied from class:ModDependencyWrite an artifact to the local cache.- Specified by:
copyToCachein classModDependency- Throws:
IOException
-
applyToProject
public void applyToProject(org.gradle.api.Project project) Description copied from class:ModDependencyApply the dependency to the project.- Specified by:
applyToProjectin classModDependency
-