mdepies
12/14/2025, 7:47 PMRey (Kingg22)
12/14/2025, 7:57 PMmdepies
12/14/2025, 9:43 PMCaleb B
12/14/2025, 9:53 PM.kt files in box and it diffs the generated IRs against some fir/ir dump for that kt, or creates the files if they don't exist already
The "diagnostics" are for custom error reporting. You make special kt files that have notation for how some code should error and where that error should be placed, like if it should appear around the function name. You can spoof different modules and files and other things too, so it's a really robust way to test weird edge cases in generalmdepies
12/15/2025, 1:13 AMCaleb B
12/15/2025, 1:22 AM:build task, and you'll just want to make a subproject that takes the gradle plugin as a plugin dependency.
I took the extra step to publish them all to mavenLocal and import them from there, so I could make absolutely sure every dependency resolved correctly. I'm not sure how you'd do it without doing that, actually.mdepies
12/15/2025, 1:30 AMmdepies
12/15/2025, 1:31 AMCaleb B
12/15/2025, 1:35 AM/test-project/build.gradle.kts.
You need to publish not just the compiler plugin, but the gradle plugin and annotations projects too. You'll also need to make sure the gradle plugin is set up for your compiler plugin's path instead of the template's.
But once that's done, the gradle plugin's configured by default to automatically add the other two as dependencies to whatever project it's applied to.Caleb B
12/15/2025, 1:38 AM/buildSrc/src/main/kotlin/module.publication.gradle.kts, which you'll see imported as id("module-publication" in the three main projects.
(If you don't know, convention plugins are basically a complicated version of pasting that file into your buildscript.)Caleb B
12/15/2025, 1:38 AMCaleb B
12/15/2025, 1:45 AMmdepies
12/15/2025, 1:51 AMmdepies
12/15/2025, 1:52 AMdmitriy.novozhilov
12/15/2025, 11:16 AMThe "black-box tests" are just to make sure some input kt file generates the right FIR/IR; you put standard .kt files in box and it diffs the generated IRs against some fir/ir dump for that kt, or creates the files if they don't exist already,Actually them also test the runtime behavior. After the code from testdata is compiled, the test framework loads compiled classes, finds and executes the
fun box(): String function and checks if the result is "OK".mdepies
12/16/2025, 3:22 AMmdepies
12/16/2025, 3:23 AMmdepies
12/16/2025, 3:25 AMmdepies
12/16/2025, 3:34 AMExecution failed for task 'gradle pluginsignOverloadableSettersPluginPluginMarkerMavenPublication'.
> Cannot perform signing task 'gradle pluginsignOverloadableSettersPluginPluginMarkerMavenPublication' because it has no configured signatory
Caleb B
12/16/2025, 11:30 PMmdepies
12/17/2025, 3:36 AMCaleb B
12/23/2025, 4:14 PM