Reputation: 171
Iam using the Gradle 6.5 version installed on my linux server.I have configured Gradle in jenkins which resides on the same server.
I have set a Freestyle project job on jenkins to build using gradle.
when iam trying to build, i get an error as below:
Plugin [id: 'com.gradle.enterprise', version: '3.3.3', artifact: 'com.gradle:gradle-enterprise-gradle-plugin:3.3.3'] was not found in any of the following sources:
Can you please suggest me how i can resolve this issue.
Upvotes: 17
Views: 57889
Reputation: 425278
My problem was being behind a firewall, which I "solved" by disconnecting from my company's VPN.
I also added plugins.gradle.org/m2
as a repo by adding gradlePluginPortal()
to repositories
:
repositories {
mavenCentral()
jcenter()
gradlePluginPortal()
}
Upvotes: 8
Reputation: 11
Remove the content of .gradle directory and turn on vpn and sync gradle to download them again
Upvotes: 1
Reputation: 1
Just remove the --offline
argument from Gradle in settings.
Steps:
Upvotes: 0
Reputation: 11
Check in build.gradle
that your *classpath 'org.springframework.boot:spring-boot-gradle-plugin'*
dependency is updated. for me *classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.5.12'*
is working.
Upvotes: 1