mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Scoping.
This commit is contained in:
parent
7d9032ad4b
commit
a4b5b459fe
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class RepoFinder @Inject constructor(val urlFactory: Kurl.IFactory, val e
|
||||||
val mavenId = MavenId(id)
|
val mavenId = MavenId(id)
|
||||||
val groupId = mavenId.groupId
|
val groupId = mavenId.groupId
|
||||||
val artifactId = mavenId.artifactId
|
val artifactId = mavenId.artifactId
|
||||||
val version = mavenId.version
|
|
||||||
if (! mavenId.hasVersion) {
|
if (! mavenId.hasVersion) {
|
||||||
val ud = UnversionedDep(groupId, artifactId)
|
val ud = UnversionedDep(groupId, artifactId)
|
||||||
val foundVersion = findCorrectVersionRelease(ud.toMetadataXmlPath(false), repoUrl)
|
val foundVersion = findCorrectVersionRelease(ud.toMetadataXmlPath(false), repoUrl)
|
||||||
|
@ -83,6 +83,7 @@ public class RepoFinder @Inject constructor(val urlFactory: Kurl.IFactory, val e
|
||||||
return RepoResult(repoUrl, false, "")
|
return RepoResult(repoUrl, false, "")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
val version = mavenId.version
|
||||||
if (version!!.contains("SNAPSHOT")) {
|
if (version!!.contains("SNAPSHOT")) {
|
||||||
val dep = SimpleDep(mavenId)
|
val dep = SimpleDep(mavenId)
|
||||||
val snapshotVersion = findSnapshotVersion(dep.toMetadataXmlPath(false), repoUrl)
|
val snapshotVersion = findSnapshotVersion(dep.toMetadataXmlPath(false), repoUrl)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue