I try to use precompiled scripts from inside a package in buildSrc/src/main/kotlin/foo
but get an error, that the plugin does not exist.
I prepared a small repo for this use case: https://github.com/jangalinski/gradle-precompiled-scripts
There is also a stackoverflow question pending: https://stackoverflow.com/questions/55847469/how-can-i-get-a-gradle-5-precompiled-script-plugin-get-to-work-when-it-is-in-a-p in case you want to earn some karma.
Thank you very much
Jan