Instead of use:
maven { maven {url 'https://xxxx-repo.com'} }
try it:
maven { setUrl("https://xxxx-repo.com") }
happy coding!