Is there any way to specify the root for buildSrc
folder manually?
I saw there is ticket which is opened for 3 years (https://issues.gradle.org/browse/GRADLE-2816).
Does Gradle have this feature now?
Is there any way to specify the root for buildSrc
folder manually?
I saw there is ticket which is opened for 3 years (https://issues.gradle.org/browse/GRADLE-2816).
Does Gradle have this feature now?
There's a "trick" to customize the buildSrc
path. Just create a symlink (symbolic link) in the root dir to the buildSrc
directory.
> cd /path/to/project
> ln -s ./local/path/to/builSrc builSrc
This will create a symlink and if you sync gradle now it will correctly pick up the buildSrc
folder. At least it worked for me.
You could do this:
root/gradle-plugins/build.gradle
- Builds thegradle-plugins
projectroot/gradle-plugins/src/main/groovy/foo/MyPlugin.groovy
- Example pluginroot/build.gradle
- Builds all the other projects (except forgradle-plugins
). These "other" projects can referencegradle-plugins
dependencies byGAV
(group/artifact/version) eg"foo:gradle-plugins:$version"
root/settings.gradle
-includeBuild 'gradle-plugins'
to create a composite build of the two seperate buildsIf you want the same version across the two builds, you could use this trick