gradle: only set wrapper gradle version when rootGradleVersion is set

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>