You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be a lot easier if we could include projects dynamically based on a git diff. e.g.
// settings.gradleplugins {
id 'com.diffplug.if-git-diff'
}
ifGitDiff {
baseline 'origin/main'// default value
folder 'some-subfolder', {
include 'some-subfolder'
}
}
For the CI setup described above, instead of having 5 jobs for each of the 5 cases, you could now have just one job, and that job would do the correct thing based on what has changed.
A more complex example:
// settings.gradle
file('_ext').eachDirMatch(~/^(?!(\.|gradle)).*/) { dir->
ifGitDiff {
folder dir, {
include dir.name
project(":${dir.name}").projectDir = dir
}
}
}
The text was updated successfully, but these errors were encountered:
nedtwigg
changed the title
Include gradle subprojects based on whether they have changes in git
if-git-diff
Jan 5, 2022
In Spotless, we have an
_ext
folder full of builds which are very expensive to run. As a result, we only run them if we have to, and we have an elaborate and difficult-to-maintain CI setup to handle that.It would be a lot easier if we could include projects dynamically based on a git diff. e.g.
For the CI setup described above, instead of having 5 jobs for each of the 5 cases, you could now have just one job, and that job would do the correct thing based on what has changed.
A more complex example:
The text was updated successfully, but these errors were encountered: