1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2015-11-08 21:28:31 -08:00
parent 7d9032ad4b
commit a4b5b459fe

View file

@ -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)