mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
apply()
This commit is contained in:
parent
0e728289c8
commit
8066ad4ae9
1 changed files with 1 additions and 2 deletions
|
@ -100,10 +100,9 @@ class KotlinPlugin @Inject constructor(
|
||||||
*/
|
*/
|
||||||
@Directive
|
@Directive
|
||||||
fun kotlinProject(vararg project: Project, init: KotlinProject.() -> Unit): KotlinProject {
|
fun kotlinProject(vararg project: Project, init: KotlinProject.() -> Unit): KotlinProject {
|
||||||
with(KotlinProject()) {
|
return KotlinProject().apply {
|
||||||
init()
|
init()
|
||||||
Kobalt.declareProjectDependencies(this, project)
|
Kobalt.declareProjectDependencies(this, project)
|
||||||
return this
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue