File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/kotlin/com/tschuchort/compiletesting Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,11 @@ class KotlinCompilation {
510510 it.flags.addAll(KaptFlag .MAP_DIAGNOSTIC_LOCATIONS , KaptFlag .VERBOSE )
511511 }
512512
513- val kaptLogger = MessageCollectorBackedKaptLogger (kaptOptions.build())
513+ val compilerMessageCollector = PrintingMessageCollector (
514+ internalMessageStream, MessageRenderer .GRADLE_STYLE , verbose
515+ )
516+
517+ val kaptLogger = MessageCollectorBackedKaptLogger (kaptOptions.build(), compilerMessageCollector)
514518
515519 /* * The main compiler plugin (MainComponentRegistrar)
516520 * is instantiated by K2JVMCompiler using
@@ -571,10 +575,6 @@ class KotlinCompilation {
571575 it.pluginClasspaths = (it.pluginClasspaths ? : emptyArray()) + arrayOf(getResourcesPath())
572576 }
573577
574- val compilerMessageCollector = PrintingMessageCollector (
575- internalMessageStream, MessageRenderer .GRADLE_STYLE , verbose
576- )
577-
578578 return convertKotlinExitCode(
579579 K2JVMCompiler ().exec(compilerMessageCollector, Services .EMPTY , k2JvmArgs)
580580 )
You can’t perform that action at this time.
0 commit comments