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
}
}
setting.gradle
rootProject.name = 'project-name'