sridevi
sridevi

Reputation: 171

Gradle Enterprise Gradle plugin (com.gradle.enterprise) not found error in jenkins when trying to build my project

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

Answers (5)

Bohemian
Bohemian

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

Mohammad
Mohammad

Reputation: 11

Remove the content of .gradle directory and turn on vpn and sync gradle to download them again

Upvotes: 1

Niyonkuru Moise
Niyonkuru Moise

Reputation: 1

Just remove the --offline argument from Gradle in settings.
Steps:

  1. Open the Gradle panel (usually on the right side of Android Studio).
  2. Look for the toggle button resembling a power plug or an airplane symbol. This represents the offline mode state.
  3. Click the toggle button to disable offline mode (if currently enabled).

Screenshot

Upvotes: 0

Eknath Take
Eknath Take

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

user21597761
user21597761

Reputation:

Just remove --offline argument from gradle in settings

Upvotes: 8

Related Questions