api / org.gradle.api.artifacts.query / ArtifactResolutionQuery / execute

execute

abstract fun execute(): ArtifactResolutionResult

Actually execute the query, returning a query result. Note that #withArtifacts(Class, Class[]) must be called before executing the query.