tony
10/28/2026, 9:55 PMtony
10/28/2026, 9:56 PMOliver.O
10/28/2026, 10:18 PMtestBalloonDiagnostics task which creates a hierarchical Mermaid diagram from source sets. Maybe you could adapt the idea?Youssef Shoaib [MOD]
10/28/2026, 10:24 PMAbstractKotlinSourceSet lets you access the dependsOn closure, which might be useful here? It is under the internal package though, so not part of the normal API surface
FWIW, source sets aren't actually in a "tree" in the strictest sense. More like a DAG I think?Oliver.O
10/28/2026, 10:27 PMorg.jetbrains.kotlin.gradle.plugin.KotlinSourceSet has public abstract val dependsOn: Set<KotlinSourceSet>, which is public.Youssef Shoaib [MOD]
10/28/2026, 10:29 PMOliver.O
10/28/2026, 10:30 PMtony
10/28/2026, 10:39 PMdependsOn and it was empty in every case. Maybe I accessed it "too early" and some lazy configuration hadn't realized yet?tony
10/28/2026, 10:40 PMOliver.O
10/28/2026, 10:41 PMafterEvaluate (but that's always risky because of the evaluation order).tony
10/28/2026, 10:42 PMtony
10/28/2026, 10:44 PMtapchicoma
10/29/2026, 6:03 PMafterEvaluate stage. That is why I am not sure that for us it is easy to expose read access to source set tree kodee sadtony
10/29/2026, 6:32 PM