https://kotlinlang.org logo
#gradle
Title
# gradle
m

mkobit

01/23/2018, 11:26 PM
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 = ":")