I think what is happening is the accessor from the...
# gradle
m
I think what is happening is the accessor from the main build scripts are not available on the classpath for the applied script you are doing like an
apply from: somefile.gradle.kts
the classpath for that script does not get the same build classpath as the script it was applied from (im pretty confident on this, i think there is an issue for it) i think as a workaround for
java
you can do
withConvention(JavaPluginConvention::class) { sourceSets }["main"].runtimeClasspath.joinToString(separator = ":")