diff --git a/src/main/kotlin/com/beust/kobalt/maven/IClasspathDependency.kt b/src/main/kotlin/com/beust/kobalt/maven/IClasspathDependency.kt index 9bfd3cfa..48d44d7a 100644 --- a/src/main/kotlin/com/beust/kobalt/maven/IClasspathDependency.kt +++ b/src/main/kotlin/com/beust/kobalt/maven/IClasspathDependency.kt @@ -74,4 +74,17 @@ open public class FileDependency(open val fileName: String) : IClasspathDependen override fun compareTo(other: FileDependency) = fileName.compareTo(other.fileName) override fun toString() = fileName + + override fun equals(other: Any?): Boolean{ + if (this === other) return true + if (other?.javaClass != javaClass) return false + + other as FileDependency + + if (id != other.id) return false + + return true + } + + override fun hashCode() = id.hashCode() }