Workaround to use buildSrc in settings.gradle in 6.0

We are using classes defined in the buildSrc project in https://github.com/gocd/gocd/blob/master/settings-docker.gradle#L17-L18 file to generate dynamic modules. That will allow us to add a new distro image without touching the build script. This was working till gradle 5.x.

In gradle 6.0 buildSrc is not available during settings evaluations and as a result, it gives us class not found an error. Is there any workaround for this?

2 Likes