mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Rename.
This commit is contained in:
parent
6c36a7c227
commit
55bc15359a
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ import java.util.concurrent.ExecutorService
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
public class DepFactory @Inject constructor(val localRepo: LocalRepo,
|
public class DepFactory @Inject constructor(val localRepo: LocalRepo,
|
||||||
val repoFinder: RepoFinder,
|
val remoteRepo: RepoFinder,
|
||||||
val executors: KobaltExecutors,
|
val executors: KobaltExecutors,
|
||||||
val downloadManager: DownloadManager,
|
val downloadManager: DownloadManager,
|
||||||
val pomFactory: Pom.IFactory) {
|
val pomFactory: Pom.IFactory) {
|
||||||
|
@ -39,7 +39,7 @@ public class DepFactory @Inject constructor(val localRepo: LocalRepo,
|
||||||
if (localFirst) {
|
if (localFirst) {
|
||||||
localRepo.findLocalVersion(mavenId.groupId, mavenId.artifactId, mavenId.packaging)
|
localRepo.findLocalVersion(mavenId.groupId, mavenId.artifactId, mavenId.packaging)
|
||||||
} else {
|
} else {
|
||||||
repoResult = repoFinder.findCorrectRepo(id)
|
repoResult = remoteRepo.findCorrectRepo(id)
|
||||||
if (!repoResult.found) {
|
if (!repoResult.found) {
|
||||||
throw KobaltException("Couldn't resolve $id")
|
throw KobaltException("Couldn't resolve $id")
|
||||||
} else {
|
} else {
|
||||||
|
@ -48,7 +48,7 @@ public class DepFactory @Inject constructor(val localRepo: LocalRepo,
|
||||||
}
|
}
|
||||||
|
|
||||||
return MavenDependency(MavenId.create(mavenId.groupId, mavenId.artifactId, packaging, version),
|
return MavenDependency(MavenId.create(mavenId.groupId, mavenId.artifactId, packaging, version),
|
||||||
executor, localRepo, repoFinder, pomFactory, downloadManager)
|
executor, localRepo, remoteRepo, pomFactory, downloadManager)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue