Until now we have used a "trick" to make the sample make use of the locally compiled plugin instead of a version deployed to JCenter, making the buildSrc of the sample project to use the sourceset from plugin module.
A neater way to achieve the same is to use composite builds: the sample project will include the root project and use the plugin module to resolve the com.novoda:gradle-build-properties-plugin:* dependency.
The major advantage is that we have no need to keep plugin/build.gradle in sync with sample/buildSrc/build.gradle.
Until now we have used a "trick" to make the sample make use of the locally compiled plugin instead of a version deployed to JCenter, making the
buildSrc
of the sample project to use the sourceset fromplugin
module.A neater way to achieve the same is to use composite builds: the
sample
project will include the root project and use theplugin
module to resolve thecom.novoda:gradle-build-properties-plugin:*
dependency. The major advantage is that we have no need to keepplugin/build.gradle
in sync withsample/buildSrc/build.gradle
.