Reputation: 2904
I`m using plugin 'org.springframework.boot' in my Gradle project. After updating to 1.5.19.RELEASE version I got an error when trying to build my project:
Could not resolve all dependencies for configuration ':detachedConfiguration1'.
- Cannot resolve external dependency org.springframework.boot:spring-boot-starter-parent:1.5.19.RELEASE because no repositories are defined. Required by: project :
I use also other plugins:
plugins {
id 'java'
id 'idea'
id 'jacoco'
id 'maven-publish'
id 'io.spring.dependency-management' version '1.0.6.RELEASE'
id 'org.springframework.boot' version '1.5.19.RELEASE'
id 'org.sonarqube' version '2.6.2'
}
When I use 1.15.18.RELEASE the project builds successfully. How I can fix it?
Upvotes: 1
Views: 1464
Reputation: 116211
The error message is saying that Gradle cannot resolve any dependencies as you haven't configured any repositories in your build.gradle
file. Spring Boot releases are published to Maven Central so you should be able to correct the problem by adding the following to build.gradle
:
repositories {
mavenCentral()
}
Upvotes: 0