1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Don't fetch remotely if .pom is found.

This commit is contained in:
Cedric Beust 2016-02-09 01:38:33 +04:00
parent 83282342ae
commit e31c5a774a

View file

@ -29,7 +29,7 @@ public class MavenDependency @Inject constructor(mavenId: MavenId,
init {
val jar = File(localRepo.toFullPath(toJarFile(version)))
val pom = File(localRepo.toFullPath(toPomFile(version)))
if (jar.exists() && pom.exists()) {
if (pom.exists()) {
jarFile = CompletedFuture(jar)
pomFile = CompletedFuture(pom)
} else {