mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Simplify.
This commit is contained in:
parent
6f83fecb72
commit
f57ad07aca
1 changed files with 1 additions and 8 deletions
|
@ -35,17 +35,10 @@ class DependencyResult(val dependency: IClasspathDependency, val repoUrl: String
|
|||
class KobaltAether @Inject constructor (val settings: KobaltSettings, val aether: Aether) {
|
||||
val localRepo: File get() = settings.localRepo
|
||||
|
||||
class MaybeArtifact(val result: DependencyResult?, val error: String?)
|
||||
|
||||
/**
|
||||
* Create an IClasspathDependency from a Kobalt id.
|
||||
*/
|
||||
fun create(id: String): IClasspathDependency {
|
||||
return AetherDependency(DefaultArtifact(id))
|
||||
// val cr = aether.directDependencies(DefaultArtifact(MavenId.toKobaltId(id)))
|
||||
// return if (cr != null) AetherDependency(cr.root.artifact)
|
||||
// else throw KobaltException("Couldn't resolve $id")
|
||||
}
|
||||
fun create(id: String) = AetherDependency(DefaultArtifact(id))
|
||||
|
||||
/**
|
||||
* @return the latest artifact for the given group and artifactId.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue