mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Doc.
This commit is contained in:
parent
76cc696356
commit
fd57a698eb
1 changed files with 7 additions and 1 deletions
|
@ -46,7 +46,7 @@ class KobaltAether @Inject constructor (val settings: KobaltSettings) {
|
|||
})
|
||||
|
||||
/**
|
||||
* Don't call this method directly, use `DepFactory` instead.
|
||||
* Create an IClasspathDependency from a Kobalt id.
|
||||
*/
|
||||
fun create(id: String): IClasspathDependency {
|
||||
val aether = Aether(localRepo)
|
||||
|
@ -55,6 +55,9 @@ class KobaltAether @Inject constructor (val settings: KobaltSettings) {
|
|||
else throw KobaltException("Couldn't resolve $id")
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the latest artifact for the given group and artifactId.
|
||||
*/
|
||||
fun latestArtifact(group: String, artifactId: String, extension: String = "jar") : DependencyResult
|
||||
= Aether(localRepo).latestArtifact(group, artifactId, extension).let {
|
||||
DependencyResult(AetherDependency(it.artifact), it.repository.toString())
|
||||
|
@ -66,6 +69,9 @@ class KobaltAether @Inject constructor (val settings: KobaltSettings) {
|
|||
else throw KobaltException("Couldn't resolve $id")
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve the given Kobalt id.
|
||||
*/
|
||||
private fun doResolve(id: String): MaybeArtifact {
|
||||
log(1, "Resolving $id")
|
||||
val results = Aether(localRepo).resolve(DefaultArtifact(MavenId.toKobaltId(id)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue