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

Refactor.

This commit is contained in:
Cedric Beust 2016-09-21 13:50:27 -07:00
parent ffc56002c3
commit 5a8fd219eb

View file

@ -268,15 +268,12 @@ class AetherDependency(val artifact: Artifact) : IClasspathDependency, Comparabl
}
}
override fun toMavenDependencies() = let { md ->
override fun toMavenDependencies() =
org.apache.maven.model.Dependency().apply {
artifact.let { md ->
groupId = md.groupId
artifactId = md.artifactId
version = md.version
}
groupId = artifact.groupId
artifactId = artifact.artifactId
version = artifact.version
}
}
override fun directDependencies(): List<IClasspathDependency> {
val result = arrayListOf<IClasspathDependency>()