Build with Gradle plugins

Hello, currently trying to use snapcraft to create a build using Gradle, but the build fails whenever any plugins are used:

* What went wrong:
Error resolving plugin [id: 'com.gradle.build-scan', version: '1.14']
> Could not GET 'https://plugins.gradle.org/api/gradle/2.10/plugin/use/com.gradle.build-scan/1.14'.
   > plugins.gradle.org: Name or service not known

It seems to be struggling to resolve plugins.gradle.org - is there some kind of whitelist I need to add URLs to, or am I off the mark completely? Apologies if this is something obvious.