in plugins/src/main/java/com/google/gradle/tasks/ValidateLicenseTask.kt [84:91]
override fun execute() {
val template = LicenseTemplate(parameters.license.get())
val file = parameters.file.get()
if (!template.matches(file)) {
throw StopExecutionException("File is missing a license header: ${file.canonicalPath}")
}
}