Getting Gradle build error,
Even after changing the org.springframework.boot version that’s available in the Gradle Plugin repository, we are getting the same error. What could be the possible reason for the error?
How could we troubleshoot the issue? Any suggestion?
* What went wrong:
Plugin [id: 'org.springframework.boot', version: '2.6.2'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.6.2')
Searched in the following repositories:
Gradle Central Plugin Repository
build.gradle => artifactory url defined in repository is accessible
plugins {
id 'org.springframework.boot' version '2.6.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'jacoco'
id "org.sonarqube" version "3.3"
id "com.gorylenko.gradle-git-properties" version "2.4.1"
}
...
repositories {
mavenCentral()
maven {
url "artifactory-url"
credentials {
}
allowInsecureProtocol = true
}
}
If you have the exact same error than OP, which is not being able to resolve org.springframework.boot:org.springframework.boot.gradle.plugin:2.6.2 though it was searched in “Gradle Central Plugin Repository” where it is available, I only have the exact same answer for you.
If you just have a similar problem, you should not hijack a thread just lightly related, but create a new one with your exact situation.