Groovy Documentation

org.gradle.api.artifacts.resolution
[Java] Interface SoftwareArtifact


@Incubating
public interface SoftwareArtifact

An artifact of a software component.

Since:
1.12


Method Summary
GradleException getFailure()

Returns the failure that occurred when the artifact was resolved, or null if no failure occurred.

File getFile()

The file for the artifact.

 

Method Detail

getFailure

@Nullable
public GradleException getFailure()
Returns the failure that occurred when the artifact was resolved, or null if no failure occurred.
Returns:
the failure that occurred when the artifact was resolved, or null if no failure occurred


getFile

public File getFile()
The file for the artifact. If resolving the artifact caused a failure, that failure will be rethrown.
Returns:
the file for the artifact


 

Gradle API 1.12