79794772

Date: 2025-10-20 09:57:59
Score: 2
Natty:
Report link

To answer my own question, it seems like buildSrc modules share the same classloader with gradle and somehow lead to dependency leaks that end up triggering internal compiler errors. So the solution I chose to go with was to create a separate module (i.e. build-logic) and then include that into my project, that way the build-logic module gets its own classloader and such issues are avoided.

So the structure looks something like:


.
├── build-logic/
│   ├── build.gradle.kts
│   ├── settings.gradle.kts
│   └── src/main/kotlin/com/package/specifics/JacocoCoveragePlugin.kt
├── app/
│   └── build.gradle
├── settings.gradle.kts
└── build.gradle.kts

And then in the root project's build.gradle.kts file, I just include it via includeBuild("build-logic").

If anyone has knowledge of the specifics please share it!

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Stelios Papamichail