Always call after compile hook
KT-8487
This commit is contained in:
+7
-2
@@ -101,8 +101,13 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractCo
|
||||
compilerCalled = true
|
||||
val cachesDir = File(project.buildDir, "kotlin-caches")
|
||||
beforeCompileHook(args)
|
||||
callCompiler(args, sources, inputs.isIncremental, modified, removed, cachesDir)
|
||||
afterCompileHook(args)
|
||||
|
||||
try {
|
||||
callCompiler(args, sources, inputs.isIncremental, modified, removed, cachesDir)
|
||||
}
|
||||
finally {
|
||||
afterCompileHook(args)
|
||||
}
|
||||
}
|
||||
|
||||
private fun getKotlinSources(): List<File> = (getSource() as Iterable<File>).filter { it.isKotlinFile() }
|
||||
|
||||
Reference in New Issue
Block a user