Precompiled plugin scripts not working from package

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

Found the solution … the package has to be defined outside the backticks:

plugins {
  `hello-world`
  custom.`hello-world-custom`
}

Thanks for posting your solution.

Please consider submitting a PR to update the documentation :slight_smile: