mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Fix the empty dependency bugs.
This code used to work pre-RC but the RC seems to scope closure fields differently so that fields were being assigned to themselves.
This commit is contained in:
parent
15ca9dc27d
commit
74e65a1ef5
1 changed files with 5 additions and 5 deletions
|
@ -63,11 +63,11 @@ public class MavenDependency @Inject constructor(mavenId: MavenId,
|
||||||
|
|
||||||
override val id = mavenId.toId
|
override val id = mavenId.toId
|
||||||
|
|
||||||
override fun toMavenDependencies(): Dependency {
|
override fun toMavenDependencies() = let { md ->
|
||||||
return Dependency().apply {
|
Dependency().apply {
|
||||||
setGroupId(groupId)
|
groupId = md.groupId
|
||||||
setArtifactId(artifactId)
|
artifactId = md.artifactId
|
||||||
setVersion(version)
|
version = md.version
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue