Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • 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.

like image 460
sridevi Avatar asked Nov 16 '22 09:11

sridevi


2 Answers

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:

repositories {
    mavenCentral()
    jcenter()
    gradlePluginPortal()
}
like image 75
Bohemian Avatar answered Dec 01 '22 00:12

Bohemian


android studio:The funny thing is that I just run invalidate cahes/restart,then everyting is ok

like image 23
zhou zhou Avatar answered Nov 30 '22 23:11

zhou zhou