Brais Gabin
11/13/2023, 10:07 AMval project = ProjectBuilder.builder()
.build()
project.pluginManager.apply(KotlinPluginWrapper::class.java)
project.pluginManager.apply(Kapt3GradleSubplugin::class.java)
project.pluginManager.apply(LightsaberPlugin::class.java)
I can see the tasks generated by kotlin and my plugin but I can't see any task generated by kapt. This makes that my tests pointless because want I want is to assert that the tasks that my plugin adds depends on the correct kapt tasks (for example, that :lightsaberDebugCheck depends on :kaptDebugKotlin). I have some tests using GradleRunner but those tests are way slower and I can't assert the dependencies I just can assert that "X" task was executed without knowing the reason. Is there a way to make this work with ProjectBuilder? Any other idea to how to test this?tapchicoma
11/13/2023, 5:44 PMproject.evaluate() and then make assertions?Brais Gabin
11/14/2023, 9:29 AMProjectInternal but I only want it to works.tapchicoma
11/14/2023, 9:30 AMevaluate() to get the actual stateBrais Gabin
11/14/2023, 9:41 AMevaluate function.