I'm thing I'd like to understand conceptually is how the classpath works. With groovy syntax when I add a plugin like
com.google.protobuf
I now have available
protobuf
as a keyword. Is there an equivalent process that happens with adding plugins to a Kotlin build script? And how does Kotlin script handle classpath / imports when only one project within a larger build adds a plugin, especially given that Kotlin script seems to require imports at the top level?
s
suresh
05/24/2017, 1:14 AM
rocketraman: for generating the
protobuf
extension, apply the plugin and run
./gradlew gskGenerateAccessors
. After that you should be able to access everything like in groovy but in a type safe manner.