Is it possible to create variable/property in settings.properties and use it in multiproject root project tasks?
I need bootstrap task to checkout project structure from cvs (20 - 25 cvs modules).
Currently I have settings.propertis with project includes + some logic not to include optional projects:
def addOptionalProject(String projectDir){
if (file(projectDir).exists()){
include projectDir
println "Optional project added. Project ${projectDir}"
}
}
I would like to be able to checkout all cvs modules/sub-projects.
I need checkout projects which are optional and are not included in actual sub-projects list and I thought best way would be create list of project names in settings.properties and use it in custom task to perform cvs checkout and in loop in settings.properties to include projects while building after checkout.
Is it possible? Do you think there is better way to avoid duplicate project definition in settings.properties and in my task/plugin configuration in build.gradle?
I use custom gradle config file to define projects and its types, this is used in settings.gradle and in the installer to generate dependencies during config phase.
If setting a value on the extra property of the gradle object, does it always have to be referenced via “gradle.foo” from within the build.gradle as well?
Is there a way to set the property in the settings.gradle file so that from within any project in a multi-project build, the said property could simply be referenced from either “project.foo”, or even just “foo”?