Skip to content

Commit

Permalink
Use lazy API to configure check task (#65)
Browse files Browse the repository at this point in the history
Fixes #64
  • Loading branch information
ALikhachev authored Jul 29, 2021
1 parent ae4b314 commit 18a74c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ private fun Project.configureCheckTasks(
apiCheckDir.mkdirs()
}
}
project.tasks.getByName("check").dependsOn(apiCheck)
project.tasks.named("check").configure {
it.dependsOn(apiCheck)
}
}

inline fun <reified T : Task> Project.task(
Expand Down

0 comments on commit 18a74c4

Please sign in to comment.