Robert Jaros
08/08/2025, 10:20 AMwebMain
shared source set with 2.2.20-Beta2 but it doesn't work for me. With val webMain by getting { }
I have this error KotlinSourceSet with name 'webMain' not found.
. What am I missing?Robert Jaros
08/08/2025, 10:27 AMwebMain.dependencies {}
works fine, which is completely different from https://youtrack.jetbrains.com/issue/KT-79188/Pre-generated-accessors-arent-available-for-webMain-webTest-source-setsReprator
08/08/2025, 10:40 AMRobert Jaros
08/08/2025, 10:43 AMwebMain.dependencies {}
and it works fine for me as well. But I'm used to by getting {}
configuration and it seems broken.Reprator
08/08/2025, 10:44 AMRobert Jaros
08/08/2025, 10:45 AMhfhbd
08/08/2025, 10:45 AMwebMain by named
?Robert Jaros
08/08/2025, 10:49 AMgetByName("webMain")
doesn't work.Robert Jaros
08/08/2025, 10:51 AMsourceSets.configureEach {
println(this)
}
and it prints both webMain
and webTest
correctly.Ekaterina Zaitseva
08/08/2025, 11:01 AMapplyDefaultTargetHierarchy()
hfhbd
08/08/2025, 11:02 AMRobert Jaros
08/08/2025, 11:04 AMDid you apply the default target hierarchy?
applyDefaultTargetHierarchy()Isn't it applied automatically?
Robert Jaros
08/08/2025, 11:08 AMapplyDefaultTargetHierarchy()
, but adding applyDefaultHierarchyTemplate()
fixes the problem!