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 {
510
510
it.flags.addAll(KaptFlag .MAP_DIAGNOSTIC_LOCATIONS , KaptFlag .VERBOSE )
511
511
}
512
512
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)
514
518
515
519
/* * The main compiler plugin (MainComponentRegistrar)
516
520
* is instantiated by K2JVMCompiler using
@@ -571,10 +575,6 @@ class KotlinCompilation {
571
575
it.pluginClasspaths = (it.pluginClasspaths ? : emptyArray()) + arrayOf(getResourcesPath())
572
576
}
573
577
574
- val compilerMessageCollector = PrintingMessageCollector (
575
- internalMessageStream, MessageRenderer .GRADLE_STYLE , verbose
576
- )
577
-
578
578
return convertKotlinExitCode(
579
579
K2JVMCompiler ().exec(compilerMessageCollector, Services .EMPTY , k2JvmArgs)
580
580
)
You can’t perform that action at this time.
0 commit comments