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

5

17

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:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Plugin Repositories (could not resolve plugin artifact 'com.gradle:gradle-enterprise-gradle-plugin:3.3.3') Searched in the following repositories: Gradle Central Plugin Repository

Can you please suggest me how i can resolve this issue.

Fyrd answered 18/6, 2020 at 11:52 Comment(3)
Any luck? how did you fixed?Haricot
I have this same issue, anyone can you help?Litharge
How did you resolved this issue?Handoff
B
8

Just remove --offline argument from gradle in settings

Bechuana answered 18/2, 2022 at 11:42 Comment(2)
I did not want to believe this worked because I got a lot of strange exceptions that had not anything to do with it. But yes this is the answer :-)Broom
Can you add more details? Where is the settings ? How to remove this argument in the seetings ?Rah
V
7

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()
}
Valvate answered 14/3, 2021 at 22:56 Comment(2)
Adding gradlePluginPortal() fixed it for me.Nylon
Adding gradlePluginPortal() fixed it also for me, thanks.Backfire
Q
1

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.

Quintilla answered 12/12, 2022 at 8:22 Comment(0)
F
0

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

Frederickfredericka answered 7/3 at 12:51 Comment(0)
N
0

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

Nuclease answered 21/4 at 7:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.