Nikita Khlebushkin02/10/2020, 3:03 PM
, but I don't know what task should I put in the parenthesis (I don't create explicitly any tasks)
Fleshgrinder02/11/2020, 5:55 AM
Nikita Khlebushkin02/11/2020, 10:46 AM
Fleshgrinder02/11/2020, 10:47 AM
and it shows you every task it runs and in which order.
./gradlew [whatever it is you want to hook into, e.g. publish] --console=plain
Nikita Khlebushkin02/11/2020, 10:53 AM
, but there is no such task
Fleshgrinder02/11/2020, 10:54 AM
is basically the same (not exactly) as
and with your plugin that would be
kotlinc -Xplugin=path/to/your/plugin.jar File.kt
part to the
Nikita Khlebushkin02/11/2020, 11:07 AM
Fleshgrinder02/11/2020, 11:35 AM
file, so byte code). You need to add your additional definitions to the AST or directly produce byte code. You cannot produce Kotlin files and feed them in because then it is not a compiler plugin.
Nikita Khlebushkin02/11/2020, 1:18 PM
Now the build is coming through, BUT in 30% only. It seems like the compiler and my plugin are racing each other, and sometimes, when my plugin wins, the generated files are on their places when the compiler is looking for them. Is there anything I can do about flakiness of the builds?
ClassBuilderInterceptorExtension.registerExtension(project, extension) ExpressionCodegenExtension.registerExtension(project, extension) SyntheticResolveExtension.registerExtension(project, extension) StorageComponentContainerContributor.registerExtension(project, extension) CompilerConfigurationExtension.registerExtension(project, extension) PreprocessedVirtualFileFactoryExtension.registerExtension(project, extension)