$ ./gradlew clean
> Could not resolve all files for configuration ':MarcomLite:classpath'.
> Could not download spring-boot-loader-tools.jar (org.springframework.boot:spring-boot-loader-tools:1.4.6.RELEASE)
> Could not get resource 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-loader-tools/1.4.6.RELEASE/spring-boot-loader-tools-1.4.6.RELEASE.jar'.
> Could not GET 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-loader-tools/1.4.6.RELEASE/spring-boot-loader-tools-1.4.6.RELEASE.jar'. Received status code 502 from server: Bad Gateway
That is, I’m still access external repo. What am I missing?
If you are applying plugins via the plugins block, then the repositories used to resolve those plugins is not controlled by the buildscript repositories. Instead, the repositories are configured via the pluginManagement block in settings.gradle