Yang
10/31/2025, 2:16 AM-Xcompiler-plugin-ordering in 2.3? I tried https://youtrack.jetbrains.com/issue/KT-55300/Provide-a-mechanism-to-describe-ordering-and-dependencies-for-compiler-plugins#focus=Comm[…]915454.0-0 but it doesn’t seem to work so far.Yang
10/31/2025, 2:19 AMoverride fun applyToCompilation(kotlinCompilation: KotlinCompilation<*>): Provider<List<SubpluginOption>> {
kotlinCompilation.compileTaskProvider.configure {
it.compilerOptions.freeCompilerArgs.add("-Xcompiler-plugin-order=my.compiler>app.cash.burst.kotlin")
}
...
return project.provider { listOf() }
}
override fun getCompilerPluginId(): String = "my.compiler"
...Zac Sweers
10/31/2025, 2:36 AMYang
10/31/2025, 3:14 AMcompiler-plugin-template project.bnorm
10/31/2025, 12:23 PM2.3.0-Beta1 or later and both compiler plugins have been updated as well.
2. Both compiler plugins have defined a non-empty ID within their respective CompilerPluginRegistrar.
3. These IDs are used when defining the order constraint to the compiler. (No warnings or errors are currently reported if IDs are not found.)
It's also possible that my sample just doesn't work at all (since I never actually tried it 🫣). Have you tried specifying the constraint in the free args of the project which uses both plugins?Yang
10/31/2025, 2:26 PMYang
10/31/2025, 2:28 PMbnorm
10/31/2025, 3:46 PMbnorm
10/31/2025, 5:05 PM-Xplugin option to register plugins and that goes down a different code path so the plugins don't get sorted.Yang
11/01/2025, 12:35 AMYang
11/01/2025, 1:46 AM