It depends on the nature of your cycles. Dependencies are grouped into configurations. As long as the configurations are cycle-free, you’ll be fine. For instance, the following will work:
project(':a') {
apply plugin: 'java'
dependencies {
testCompile project(':b')
}
}
project(':b') {
apply plugin: 'java'
dependencies {
compile project(':a')
}
}
Still, removing those cycles is probably a good idea