getPackage

abstract fun getPackage(reference: PackageReference): RepositoryPackage?

Looks up the exact version of a package a reference points to.

Return

the package, or null if the package or the version does not exist in this repository

Parameters

reference

versioned reference to resolve

Throws

if the repository cannot be reached

if the package's manifest is malformed