0

I have a plugin with the name of jacoco-report.gradle.kts in root directory of project(ProjectName/jacoco-report.gradle.kts). Now I want to add this plugin inside the plugins block of submodules.

plugins{
    //id of jacoco-report.gradle.kts
}

Can someone please help me how can I apply this plugin. Before migrating to kotlin dsl, I used apply from: rootProject.file("jacoco-report.gradle") to apply this plugin in groovy gradle file.

Abdullah Javed
  • 459
  • 3
  • 17

1 Answers1

3

Finally I found a way to do this.

rootProject.apply {
    rootProject.file("jacoco-report.gradle.kts")
}
Abdullah Javed
  • 459
  • 3
  • 17