Hi All,
I am really annoyed with com.gradle.enterprise plugin as the id and groupid different
I finally tried to redirect using
pluginManagement {
repositories {
maven { url "https://artifactory.XXX/artifactory/public/" }
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "com.gradle.enterprise") {
useModule("com.gradle:gradle-enterprise-gradle-plugin:3.3.3")
}
}
}
}
plugins {
id "com.gradle.enterprise" version "3.3.3"
}
Now all I am getting the error is
Plugin not found in org.gradle instead of searching in com.gradle
-
Exception is:
-
Where:
Auto-applied by using --scan -
What went wrong:
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:
maven(https://artifactory.int.corp.sun/artifactory/public/)
-