1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -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 { org.apache.maven.model.Dependency().apply {
artifact.let { md -> groupId = artifact.groupId
groupId = md.groupId artifactId = artifact.artifactId
artifactId = md.artifactId version = artifact.version
version = md.version
}
} }
}
override fun directDependencies(): List<IClasspathDependency> { override fun directDependencies(): List<IClasspathDependency> {
val result = arrayListOf<IClasspathDependency>() val result = arrayListOf<IClasspathDependency>()